Description Usage Arguments Value See Also Examples
Converts numeric data to an object of class containing one dimensional data. The input data is assumed to be uniformly sampled.
1 2 3 |
by |
a numeric containing the sampling rate at
which the values in |
documentation |
a string used to describe the input
|
from |
a |
length.out |
an integer containing the maximum number
of values to extract from |
na.rm |
a logical flag used to indicate if NaN values should be removed from the input. Default: |
position |
a |
title.data |
a string representing the name of the input
|
to |
a numeric containing the end point
in |
units |
a string denoting the units of the time series. Default: |
x |
a numeric vector, matrix or an object of class |
an object of class signalSeries
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ## convert an explicitly developed numeric vector
x <- 1:10
create.signalSeries(x)
## now impose hypothetical positions on the data
create.signalSeries(x, pos=list(from=0.3, by=0.1))
## extract the values from position 0.5 onward
create.signalSeries(x, pos=list(from=0.3, by=0.1), from=0.5)
## extract the values from position 0.5 onward,
## but keep only the first 3 values of the
## extraction
create.signalSeries(x, pos=list(from=0.3, by=0.1), from=0.5, length=3)
## extract the values from position 0.5 onward and
## skip every other point (sample the data at
## 0.2 position intervals)
create.signalSeries(x, pos=list(from=0.3, by=0.1), from=0.5, by=0.2)
## simply return the first 4 values, and supply a
## title and some documentation comments to the
## data
create.signalSeries(x, length=4, title="Faux Data", doc="An example")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.