peekDataset {GCDkit}R Documentation

Retrieving previous dataset stored in memory

Description

Both functions restore the previously stored dataset and make it current.

Usage

    peekDataset(which.dataset=NULL)
    selectDataset()

Arguments

which.dataset

numeric or character; a sequence number or name of the stored dataset.

Details

The function 'peekDataset' restores a dataset saved previously into memory by the function 'pokeDataset'. This means that it assigns all global variables specified by individual items of the list 'WRCube'.

These typically are: 'WR', 'WRanh', 'milli', 'labels', 'filename', 'groups' and 'grouping'.

The function 'selectDataset' provides a graphical interface to 'peekDataset', i.e. shows a list box filled by the names of datasets currently stored in the memory.

Value

None. But several global variables, among others 'WR', 'WRanh', 'milli' and 'labels', are affected. The name of the current dataset is stored in 'dataset.name'.

Author(s)

Vojtech Janousek, vojtech.janousek@geology.cz

See Also

'pokeDataset' 'purgeDatasets'

Examples

data(sazava)
accessVar("sazava")
# stored as sazava in WRCube

assignColVar("MgO","blues")
assign1symb(15)
# store a new copy in the WRCube
pokeDataset("coloured sazava")
    
data(swiss)
accessVar("swiss")
# stored as swiss in WRCube
    
peekDataset("sazava")
binary("SiO2","Ba")
        
peekDataset("coloured sazava")
binary("SiO2","Ba")
    
peekDataset("swiss")
binary("Catholic","Education",pch=15,col="darkgreen")

peekDataset(2)
binary("SiO2","Sr")

[Package GCDkit version 6.0 Index]