x <- c(1:3)
sf_point( x )
x <- matrix( c(1:10) , ncol = 2 )
sf_point( x )
x <- setNames( as.data.frame( x ), c("x","y") )
sf_point( x )
sf_point( obj = x, x = "x", y = "y" )
sf_point( obj = x, x = "y", y = "x" )
# keeping properties
x$val <- letters[1:5]
sf_point( x, x = "x", y = "y", keep = TRUE )
Run the code above in your browser using DataLab