sfg_to_df: sfg to df

Description Usage Arguments Examples

View source: R/df.R

Description

Converts an sfg object to a data.frame

Usage

1
sfg_to_df(sfg)

Arguments

sfg

sfg object

Examples

1
2
3
4
5
6
sfg <- sfg_point( obj = c(1,2) )
df <- sfg_to_df( sfg )

m <- cbind( matrix( 1:24, ncol = 2 ), c(rep(1, 6), rep(2, 6) ) )
sfg <- sfg_polygon( obj = m, x = 1, y = 2, linestring_id = 3 )
df <- sfg_to_df( sfg )

sfheaders documentation built on Dec. 1, 2020, 1:07 a.m.