Learn R Programming

move (version 1.0)

as.data.frame: Return a Data Frame

Description

Function to create a data.frame with the information of a spatial data frame contained in the Move object.

Usage

## S3 method for class 'Move':
as.data.frame(x,...)

Arguments

x
an object of the Move-class
...
additional arguments to be passed to or from methods

Details

as.data.frame extracts the sdf argument from a Move object (see Move-class)

Examples

Run this code
## create a move object
data <- move(system.file("extdata","leroy.csv.gz",package="move"))

## returns a data.frame with all information stored in the spatial data frame of the move object
df <- as.data.frame(data)
b <- moveStack(list(move(system.file("extdata","leroy.csv.gz",package="move")),move(system.file("extdata","leroy.csv.gz",package="move"))))
data.frame(b)

Run the code above in your browser using DataLab