usa-npn / rnpn

R client for the National Phenology Network database API
https://rdrr.io/cran/rnpn/
Other
19 stars 9 forks source link

Error in getallobssp function #9

Closed sckott closed 10 years ago

sckott commented 10 years ago

Error found by @cboettig

out <- getallobssp(speciesid = 35, startdate="1960-01-01", enddate="1994-01-01")

and got this error

Error in data.frame(phenophase_id = "76", phenophase_name = "First leaf",  : 
  arguments imply differing number of rows: 1, 0
npnlee85 commented 10 years ago

Hey Scott,

I saw this issue come through the mailing list from the user. I'm really pressed for time right now, so I'll take a look when I have a chance, but it may not be soon. I'd be happy to try and help you answer any questions though, if there's a possibility you or someone else gets to it first.

Lee

On Mon, Feb 10, 2014 at 4:14 PM, Scott Chamberlain <notifications@github.com

wrote:

Error found by @cboettig https://github.com/cboettig

out <- getallobssp(speciesid = 35, startdate="1960-01-01", enddate="1994-01-01")

and got this error

Error in data.frame(phenophase_id = "76", phenophase_name = "First leaf", : arguments imply differing number of rows: 1, 0

Reply to this email directly or view it on GitHubhttps://github.com/ropensci/rnpn/issues/9 .

sckott commented 10 years ago

Okay, thanks @npnlee85 - Will let you know if I have any questions.

sckott commented 10 years ago

hey @cboettig That call should work now, and be faster, replaced plyr with data.table