Learn R Programming

hsdar (version 0.5.1)

usagehistory: History of usage

Description

Handling history of usage of Speclibs

Usage

usagehistory(x) usagehistory(x) <- value

Arguments

x
Object of class Speclib
value
Character string to be added to usagehistory or NULL, if usagehistory should be deleted.

Value

For usagehistory<-, the updated object. Otherwise a vector giving the history of usage of Speclib is returned.

See Also

Speclib

Examples

Run this code
data(spectral_data)

## Return history of usage
usagehistory(spectral_data)

## Deleting history of usage
usagehistory(spectral_data) <- character() 
spectral_data

## Adding entries
usagehistory(spectral_data) <- "New entry" ## Adding new entry
usagehistory(spectral_data) <- "New entry 2" ## Adding second entry
spectral_data

Run the code above in your browser using DataLab