Skip to content

Commit

Permalink
minor fix create visits
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejandro Ruete committed Oct 29, 2019
1 parent ff76e61 commit 2aaefb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/organizeBirds.R
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ createVisits<-function(x, columns=c("locality", "day", "month", "year", "recorde

if(any(class(x)=="data.frame")){
return(as.integer(factor(apply(x[columns], 1, paste0, collapse=""))))
}else if (class(x)=="OrganizedBirds-class"){
}else if (class(x)=="OrganizedBirds"){
return(as.integer(factor(apply(x$spdf@data[columns], 1, paste0, collapse=""))))
}else{
stop("x must be a 'data.frame' or an 'OrganizedBirds'")
Expand Down

0 comments on commit 2aaefb1

Please sign in to comment.