processNode: processNode

View source: R/oxy-SSNtools.R View source: R/SSNtools.R

processNodeR Documentation

processNode

Description

process user_nodes to correct format for hotspot detection algorithm

Usage

processNode(data, label_name, lon_name, lat_name, bipartite_name = NA)

Arguments

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

DETAILS

Value

a list of named lists, in which the name for each list is the node label. The sublist contains all info of a node

Examples

## Not run: 
nodes = processNode(user_nodes, 'label', 'lon', 'lat')
nodes[[1]] 
nodes[['YOUR NODE LABEL']][['lon']]

## End(Not run)

friendlycities-gatech/SSNtools documentation built on Sept. 13, 2023, 10:40 a.m.