Learn R Programming

move (version 2.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

# S4 method for 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
# NOT RUN {
## create a move object
data(leroy)
data <- leroy[99:150,]

## returns a data.frame with all information stored in the spatial data frame of the move object
head(df <- as.data.frame(data))
# }

Run the code above in your browser using DataLab