nds_create_points | R Documentation |
This function creates a sf object using the point geometry, based on the NDS-BR naturalistic data (see nds_load_data).
nds_create_points(data, x, y, valid = "all")
data |
A data.frame or tibble object with coordinates. |
x |
Data attribute with x coordinates. |
y |
Data attribute with y coordinates. |
valid |
Option to select all data or valid data ("all", "yes"). |
nds_create_points
takes the naturalistic data as input and creates a
point spatial object. x
and y
arguments considers
longitude and latitude, respectively. It is possible to filter only valid
time data using the valid
parameter. In it's default, the function
transforms all data, including invalid times.
A sf object with point geometry
nds_create_lines
path <- system.file("extdata", package = "ndsbr")
nds_data <- nds_load_data("driver", path)
nds_create_points(nds_data, x = LONG, y = LAT)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.