View source: R/oxy-SSNtools.R View source: R/SSNtools.R
processNode | R Documentation |
process user_nodes to correct format for hotspot detection algorithm
processNode(data, label_name, lon_name, lat_name, bipartite_name = NA)
data |
user_nodes, which should be a R dataframe that contains a column of node label, a column of node longitude, and a column of node latitude |
label_name |
column name (string) that contains the node labels |
lon_name |
column name (float) that contains the node longitude |
lat_name |
column name (float) that contains the node latitude |
bipartite_name |
(optional) column name (binary) that contains which set the node is in if available. 1 represents the set that the heat is visualized on. |
DETAILS
a list of named lists, in which the name for each list is the node label. The sublist contains all info of a node
## Not run:
nodes = processNode(user_nodes, 'label', 'lon', 'lat')
nodes[[1]]
nodes[['YOUR NODE LABEL']][['lon']]
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.