copyTRS-methods: Copy temporal reference

Description Usage Arguments Value Examples

Description

Copies the temporal reference systems from scidbst object y to scidbst object x.

Usage

1
2
3
4
5
## S4 method for signature 'scidbst,scidbst'
copyTRS(x, y)

## S4 method for signature 'scidb,scidbst'
copyTRS(x, y)

Arguments

x

scidbst or scidb object

y

scidbst object

Value

modified x

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
 st.arr1 = scidbst("st_arr_1")
 st.arr2  = scidbst("st_arr_2")
 simple.arr = scidb("some_array")

 # overwrite trs of array 1 with trs of array 2
 st.arr1 = copyTRS(st.arr1, st.arr2)

 # set the TRS of array 2 for the simple array (having the same named temporal dimension)
 t.arr1 = copyTRS(simple.arr, st.arr2)

## End(Not run)

flahn/scidbst documentation built on May 16, 2019, 1:15 p.m.