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<-'
#> [1] "visitUID"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")#> [1] "visNoRecorder"