Description Usage Arguments Value Examples
Read nodes' information from a file including all nodes and extract nodes of one decoration. Accepted formats are tab separated values ('tsv'), semicolon separated values ('csv'), or shapefile ('shp').
1 2 3 4 5 |
site |
Name of the site |
decor |
Name of the decoration |
dir |
Path to the working folder, by default it is the working directory |
nodes |
Name of the nodes file (a dataframe or a shapefile) |
format |
File extension indicating a file format from 'tsv' (tab separated values),
'csv' (semicolon separated values) or 'shp' (shapefile). For 'tsv' and 'csv'
the files must include node coordinates ( |
Dataframe of graph nodes, including at least the columns "site", "decor", "id", "x", "y", with values for each node (row).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # Set data folder
dataDir <- system.file("extdata", package = "iconr")
# Read dataframe of nodes
nds.df <- read_nds(site = "Cerro Muriano", decor = "Cerro Muriano 1",
dir = dataDir, format = "tsv")
nds.df
## Dataframe of nodes
# Read shapefile of nodes
nds.df <- read_nds(site = "Cerro Muriano", decor = "Cerro Muriano 1",
dir = dataDir, format = "shp")
nds.df
## Dataframe of nodes
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.