accessVar {GCDkit}R Documentation

Accessing data in memory of R

Description

Loads data already present in memory of R into GCDkit.

Usage

accessVar(var = NULL, source.first = TRUE, source.diagrams = TRUE, source.plugins = TRUE,
    poke.data = TRUE, GUI = FALSE)

Arguments

var

numeric matrix, or a text string specifying a name of such a variable to be accessed

source.first

logical; should be the GCDkit.r sourced?

source.diagrams

logical; should be built the lists of available diagrams?

source.plugins

logical; should be all the plugins sourced?

poke.data

logical; should the dataset be stored in the WRCube?

GUI

logical; is the function called from GUI (or from the command line)?

Details

This function enables accessing a variable already present in R. The variable is a numeric matrix or dataframe that can be either passed directly, or referred to by its name. Typically is the function accessVar used to access sample data sets, previously made available using the command data. See Examples.

If source.diagrams = TRUE, then two lists of applicable diagrams are built (based on data present in the current dataset), claslist and tectlist.

Value

WR

numeric matrix: all numeric data

labels

data frame: all at least partly character fields; labels$Symbol contains plotting symbols and labels$Colour the plotting colours

The function prints a short summary about the attached data. It also loads and executes the Plugins, i.e. all the R code that is currently stored in the subdirectory '\Plugin'.

Author(s)

Vojtěch Janoušek, vojtech.janousek@geology.cz

Examples

    data(swiss)
    accessVar(swiss)
    binary("Catholic","Education")

    data(sazava)
    accessVar("sazava")
    binary("SiO2","Ba")

[Package GCDkit version 6.1 Index]