rep.uts: Repeat uts and uts_vector

Description Usage Arguments Details Value Examples

View source: R/uts_vector.R

Description

Create a "uts_vector" by replicating the individual "uts" of the input x.

Usage

1
2
3
4
5
## S3 method for class 'uts'
rep(x, ...)

## S3 method for class 'uts_vector'
rep(x, ...)

Arguments

x

a "uts" or "uts_vector".

...

further arguments passed to rep in base R.

Details

This method is a wrapper around rep in base R that makes sure the returned object is of class "uts_vector".

Value

An object of class "uts_vector".

Examples

1
2
3
4
5
6
# Repeat "uts"
rep(ex_uts(), 4)

# Repeat "uts_vector"
rep(ex_uts_vector(), times=3)
rep(ex_uts_vector(), each=3)

andreas50/utsMultivariate documentation built on Sept. 27, 2021, 10:33 p.m.