GeNetIt (version 0.1-4)

build.node.data: Build node data

Description

Helper function to build the origin/destination node data structure.

Usage

build.node.data(x, group.ids, from.parms, to.parms = NULL)

Value

data.frame

Arguments

x

A data.frame containing node (site) data

group.ids

Character vector of unique identifier that can be used to join to graph

from.parms

Character vector of independent "from" variables

to.parms

Character vector of independent "to" variables. If NULL is the same as from.parms

Author

Jeffrey S. Evans <jeffrey_evans@tnc.org> and Melanie Murphy <melanie.murphy@uwyo.edu>

Examples

Run this code
data(ralu.site)

# Build from/to site (node) level data structure 
site.parms = c("AREA_m2", "PERI_m", "Depth_m", "TDS")
site <- build.node.data(ralu.site@data, group.ids = c("SiteName"), 
                        from.parms = site.parms ) 
 

Run the code above in your browser using DataLab