
Last chance! 50% off unlimited learning
Sale ends in
Function to create a data.frame
of a Move, dBMvariance, dBGBvariance, .unUsedRecords object.
# S4 method for Move
as.data.frame(x)
# S4 method for MoveStack
as.data.frame(x)
# S4 method for MoveBurst
as.data.frame(x)
# S4 method for dBMvariance
as.data.frame(x)
# S4 method for .unUsedRecords
as.data.frame(x)
# S4 method for .unUsedRecordsStack
as.data.frame(x)
a move
, moveStack
, moveBurst
, dBMvariance
, dBMvarianceStack
, dBMvarianceBurst
, dBGBvariance
,.unUsedRecords
or .unUsedRecordsStack
object
'data.frame
'
Depending on the class of the object provided, the obtained data.frame
contains the information contained in the slots:
if class move
: "timestamps", "idData", "sensor", "data", "coords".
if class moveStack
: "timestamps", "idData", "sensor", "data", "coords", "trackId".
if class moveBurst
: "timestamps", "idData", "sensor", "data", "coords", "burstId".
if class dBMvariance
: "timestamps", "sensor", "data", "coords", "window.size", "margin", "means", "in.windows", "interest".
if class dBMvarianceStack
: "timestamps", "sensor", "data", "coords", "window.size", "margin", "means", "in.windows", "interest","trackId".
if class dBMvarianceBurst
: "timestamps", "sensor", "data", "coords", "window.size", "margin", "means", "in.windows", "interest", "burstId".
if class dBGBvariance
: "timestamps", "sensor", "data", "coords", "paraSd", "orthSd", "margin", "windowSize".
if class .unUsedRecords
: "dataUnUsedRecords", "timestampsUnUsedRecords", "sensorUnUsedRecords".
if class .unUsedRecordsStack
: "trackIdUnUsedRecords", "dataUnUsedRecords", "timestampsUnUsedRecords", "sensorUnUsedRecords".
# NOT RUN {
## obtain data.frame from move object
data(leroy)
head(as.data.frame(leroy))
## obtain data.frame from moveStack object
data(fishers)
head(as.data.frame(fishers))
## obtain data.frame from .unUsedRecordsStack object
unUsedFishers <- unUsedRecords(fishers)
head(as.data.frame(unUsedFishers))
# }
Run the code above in your browser using DataLab