pokeDataset {GCDkit}R Documentation

Storing a dataset into memory for later use

Description

Saves the current dataset into memory so that it can be later re-stored.

Usage

    pokeDataset(which.dataset = NULL, par.list = "WR,WRanh,milli,labels,filename,groups,grouping")

Arguments

which.dataset

character; a name of the stored dataset.

par.list

list of global variables to be stored.

Details

This function stores the global variables specified by par.list, typically 'WR', 'WRanh', 'milli' 'labels', 'filename', 'groups' and 'grouping' into the list 'WRCube'.

If no which.dataset is provided upon the call, it can be typed in or selected from the list of existing datasets.

Please note that 'pokeDataset' is also invoked when a new dataset is loaded into memory using the functions 'loadData' or 'accessVar'. In the former case it is stored under the name of the file, in the latter under the variable name. If such a name already exists in 'WRCube', a time stamp is attached.

For restoring the stored variables serve functions 'peekDataset' and 'selectDataset'. The function 'purgeDatasets' removes all older datasets, apart from the most recent copy of the current one.

Value

None.

Warning

If not called from a GUI, no warning is issued upon rewriting the existing dataset.

Author(s)

Vojtech Janousek, vojtech.janousek@geology.cz

See Also

'peekDataset' 'selectDataset' 'purgeDatasets' 'loadData' 'accessVar'

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")

[Package GCDkit version 4.1 Index]