# NOT RUN {
oc_points(-21.01404, 55.26077)
xdf <-
data.frame(
place = c("Hamburg", "Los Angeles"),
lat = c(53.5503, 34.0536),
lon = c(10.0006, -118.2427)
)
oc_points(
data = xdf,
latitude = lat,
longitude = lon
)
# create a list column with points with dplyr
library(dplyr)
xdf %>%
mutate(
points =
oc_points(
lat,
lon
)
)
# }
Run the code above in your browser using DataLab