Retrieves the node list by selecting and ordering the column node
of the
output of the function create_node_labels()
.
get_node_list(nodes)
a data.frame
with (at least) the following three columns:
node
, transect
, and quadrats
. Must be the output of the function
create_node_labels()
.
A vector of node labels.
library("chessboard")
# Two-dimensional sampling (only) ----
sites_infos <- expand.grid("transect" = 1:3, "quadrat" = 1:5)
nodes <- create_node_labels(data = sites_infos,
transect = "transect",
quadrat = "quadrat")
get_node_list(nodes)
#> [1] "1-1" "1-2" "1-3" "1-4" "1-5" "2-1" "2-2" "2-3" "2-4" "2-5" "3-1" "3-2"
#> [13] "3-3" "3-4" "3-5"