its-join {its} | R Documentation |
Join functions for objects of class "its"
.
union(x,y) intersect(x,y) alignedIts(obj1,obj2,print=TRUE) appendIts(obj1,obj2,but=TRUE,matchnames=TRUE)
x, y |
an object of class "its" or NULL |
obj1, obj2 |
an object of class "its" |
print |
logical flag to display summary information |
but |
logical flag controls whether overlap is disallowed |
matchnames |
logical flag controls whether names must match |
union
has a number of time values (rows) which is determined by the union
of the time-stamps of the two inputs. The number of columns is the sum of the
number of columns of the two inputs.
intersect
has a number of time values (rows) which is determined by the
intersect of the time-stamps of the two inputs. The number of columns is the sum
of the number of columns of the two inputs.
alignedIts
selects the rows from two inputs which have identical time-stamps
appendIts
appends one object to the other, removing overlapping data from the
later object, optionally checking that the column names match
For union
, intersect
, appendIts
an object of class "its"
.
For alignedIts
, a list of two objects of class "its"
Giles Heywood
ts
,
POSIXct
,
its-file
,
its-lags
its-join
its-times
its-subset
its-fin
its-disp
its-info
its-cumdif
its-arith
a <- matrix(c(seq(by=24*60*60,length=20),1:20,41:60),nrow=20,ncol=3) b <- as.its(a) union(b,diff(b)) intersect(b,diff(b)) alignedIts(b,diff(b)) a1 <- matrix(c(seq(from=24*60*60*30,by=24*60*60,length=20),1:20,41:60),nrow=20,ncol=3) b1 <- as.its(a1) appendIts(b,b1)