createTS: createTS

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/createTS.r

Description

creates a random time series of data of length N, not perfect but works

Usage

1
createTS(N = 100, seed = NULL, nonstationary = T, all.positive = T)

Arguments

N

= the number of values desired (Defaults to 100)

seed

(Defaults to null)

nonstationary

(Defaults to T)

all.positive

= if you want all values positive set all.positive=T to rescale (Defaults to T)

Value

x

Author(s)

unknown, <unknown>@dfo-mpo.gc.ca

References

http://stats.stackexchange.com/questions/29239/creating-auto-correlated-random-values-in-r

See Also

Other random data: create_random_matrix

Examples

1
2
createTS(8,nonstationary=T,all.positive=F)
[1]  0.0000000  0.6036440  0.8781622  0.8489549  1.3040091  0.5772213  0.2788312 -0.2574978 -0.6370382

Beothuk/bio.utilities documentation built on May 5, 2019, 1:39 p.m.