Skip to contents

This function returns or replaces the idData slot of a Move, MoveStack or MoveBurst object.

Usage

# S4 method for class '.MoveTrack'
idData(x,i,j,...)

  # S4 method for class '.MoveTrack,missing,missing,data.frame'
idData(x, i, j) <- value
  # S4 method for class '.MoveTrack,ANY,ANY,ANY'
idData(x, i, j) <- value

Arguments

x

a move, moveStack or moveBurst object

i

Selection of the rows

j

Selection for the columns

value

Replacement values for the selected idData

...

Other arguments to the data frame subsetting such as drop=F

Author

Bart Kranstauber & Anne Scharf

Value

Either the idData data.frame or the modified move object

Examples

data(fishers)
idData(fishers)
#>         eobs.fix.battery.voltage manually.marked.outlier visible sensor.type
#> Leroy                          0                      NA    true         gps
#> Ricky.T                       NA                      NA    true         gps
#>         individual.taxon.canonical.name tag.local.identifier
#> Leroy                   Martes pennanti                   74
#> Ricky.T                 Martes pennanti                 1016
#>         individual.local.identifier                study.name
#> Leroy                         Leroy Urban fisher GPS tracking
#> Ricky.T                     Ricky.T Urban fisher GPS tracking
#>                study.timezone behavioural.classification
#> Leroy   Eastern Standard Time                         NA
#> Ricky.T Eastern Standard Time                         NA

## obtain e.g. only the tag and individual identifier columns
idData(fishers, j=c(6,7))
#>         tag.local.identifier individual.local.identifier
#> Leroy                     74                       Leroy
#> Ricky.T                 1016                     Ricky.T
idData(fishers, j=c("tag.local.identifier", "individual.local.identifier"))
#>         tag.local.identifier individual.local.identifier
#> Leroy                     74                       Leroy
#> Ricky.T                 1016                     Ricky.T