getDuplicatedTimestamps | R Documentation |
Identifies all pairs of duplicated timestamps within an individual and sensor type from data downloaded from Movebank or own data.
## S4 method for signature 'character'
getDuplicatedTimestamps(x, ..., onlyVisible = TRUE)
## S4 method for signature 'factor'
getDuplicatedTimestamps(x, timestamps, sensorType, visible=NULL, ...)
x |
full path to the csv (or compressed) file location downloaded from a Movebank study, or to the zip file location downloaded from the EnvData tool in Movebank. |
timestamps |
vector containing timestamps with POSIXct conversion if non-Movebank data are provided,i.e. |
sensorType |
optional, character or vector of characters containing sensor type(s) if non-Movebank data are provided. |
onlyVisible |
logical, indicating if the visible column in the movebank data should be considered when the column visible is present, the default is to ignore all non-visible/outlier locations |
visible |
optional, a logical vector indicating the locations that should be considered. |
... |
currently not implemented |
If own data (non-Movebank) are used, the vectors specified in "x", "timestamps" and optionally "visible" have to have the same length.
This function returns a list. The name of the list elements contains the individual's name, the timestamp that is duplicated and the sensor type (if provided). Each list element contains a vector with the corresponding row numbers where the duplicated timestamps are located in the table. If no duplicated timestamps are found NULL
is returned.
Anne Scharf
data(duplicatedDataExample)
getDuplicatedTimestamps(x=as.factor(duplicatedDataExample$individual.id),
timestamps=as.POSIXct(duplicatedDataExample$timestamps,
format="%Y-%m-%d %H:%M:%S", tz="UTC"),
sensorType=duplicatedDataExample$sensor.type)
filePath<-system.file("extdata","leroy.csv.gz",package="move")
getDuplicatedTimestamps(filePath)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.