identical.stars: Identical STARs

Description Usage Arguments Value Note See Also Examples

View source: R/identical.stars.R

Description

Check whether two STAR templates/objects are identical. This comparison excludes the SharePoint and Excel properties SharePoint_Folder, Excel_Filename, Person_Modified, Time_Modified, and Time_Imported.

Usage

1

Arguments

x

STAR template filename or STAR object, a list containing Metadata and TimeSeries.

y

another STAR template/object to compare.

Value

TRUE or FALSE, indicating whether the objects are identical, disregarding the SharePoint and Excel properties.

Note

When importing many STAR templates submitted by stock assessors, it can happen that two Excel files contain the same stock assessment results. This function helps to identify such cases.

See Also

diff.stars shows differences between STAR templates/objects.

identical is the underlying function used to compare the two objects.

gfcmSTAR-package gives an overview of the package.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 

# Are the R objects completely identical?
identical(star1, star2)

# Do the STAR objects contain the same data,
# disregarding SharePoint and Excel properties?
identical.stars(star1, star2)

# Work directly with files
identical.stars("STAR_1.xlsx", "STAR_2.xlsx")

## End(Not run)

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