append.id: Append Suffix to Assessment_ID

Description Usage Arguments Value Note See Also Examples

View source: R/append.id.R

Description

Modify the Assessment_ID of an existing STAR object, in both the Metadata and TimeSeries components.

Usage

1
append.id(star, suffix)

Arguments

star

STAR object, a list containing Metadata and TimeSeries.

suffix

string appended to the existing Assessment_ID to create a unique identifier.

Value

star with the new Assessment_ID.

Note

This function is an administrative tool, convenient when two (or more) STAR objects imported into R have the same Assessment_ID. Before importing into the STAR database, the Assessment_ID of these STAR objects should be modified by appending different suffix strings. See example below.

See Also

combo is the general method to construct the Assessment_ID.

read.template reads an Excel STAR template into a STAR object, offering the user to append a suffix at the time of initial import.

gfcmSTAR-package gives an overview of the package.

Examples

1
2
3
4
5
6
7
## Not run: 

# Two STAR objects have the same Assessment_ID ... let's fix that
s1 <- append.id(s1, "a4a")
s2 <- append.id(s2, "spict")

## End(Not run)

gfcm/gfcmSTAR documentation built on Feb. 5, 2022, 2:14 p.m.