Learn R Programming

RSurvey (version 0.5.0)

srvy.vars: Set Data Variables

Description

A GUI for specifying the data's temporal and spatial variables.

Usage

srvy.vars(cols.name, cols.class, vars.old, parent)

Arguments

cols.name
character; a vector of column names
cols.class
character; a vector of column units
vars.old
list; see the vars parameter in srvy.dat
parent
tkwin; the parent window (optional)

Value

  • Returns an updated vars list; see srvy.dat

Examples

Run this code
data(project)
cols <- srvy.dat("cols")
cols.name  <- unlist(lapply(1:length(cols), function(i) cols[[i]]$name))
cols.class <- unlist(lapply(1:length(cols), function(i) cols[[i]]$class))
vars.old <- srvy.dat("vars")
srvy.vars(cols.name, cols.class, vars.old)

Run the code above in your browser using DataLab