View source: R/organizeBirds.R
| visits | R Documentation | 
Gets or sets the visits identifier for a OrganizedBirds-class.
visits(x, name=NULL)
visits(x, name = NULL, useAsDefault = TRUE) <- value
| x | An OrganizedBirds-object | 
| name | The name of the visit column. Default is  | 
| useAsDefault | Specifies if the defined column in  | 
| value | the value to assign | 
Either extracts a vector with visits IDs from an object of class 
'OrganizedBirds' if used as visits(), or it binds a column with visit 
IDs to the spatial data.frame within the OrganizedBirds-object if used as 
'visits<-'
ob <- organizeBirds(bombusObs)
attr(ob, "visitCol")
vis <- visits(ob)
tmp.vis <- createVisits(bombusObs,
                        idCols=c("locality"),
                        timeCols = c("day", "month", "year"),
                        gridIdCol = "id")
visits(ob, name = "visNoRecorder", useAsDefault = TRUE) <- tmp.vis
vis2 <- visits(ob)
attr(ob, "visitCol")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.