x <- c(1:3)
sfc_point( x )
x <- matrix( c(1:10) , ncol = 2 )
sfc_point( x )
x <- setNames( as.data.frame( x ), c("x","y") )
sfc_point( x )
sfc_point( obj = x, x = "x", y = "y" )
sfc_point( obj = x, x = "y", y = "x" )
Run the code above in your browser using DataLab