Learn R Programming

move (version 3.2.2)

as.data.frame: Returns a Data Frame

Description

Function to create a data.frame of a Move, dBMvariance, dBGBvariance, .unUsedRecords object.

Usage

# 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)

Arguments

x

a move, moveStack, moveBurst, dBMvariance, dBMvarianceStack, dBMvarianceBurst, dBGBvariance,.unUsedRecords or .unUsedRecordsStack object

Value

'data.frame'

Details

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".

Examples

Run this code
# 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