Description Usage Arguments Value Notes
View source: R/data_functions.R
ts_load returns a standard-format data array
1 |
filename |
(string) name of data file |
header |
(logical) if true then line 1 is a header line. |
csv |
(logical) does the file use commas to seperate columns? |
cols |
(vector) list of columns to read |
matrix (2D array) with three named columns named t, y, dy.
Load time series data from a multi-column ASCII file. The input data file
should contain columns for t, y and dy.
Here, t is the time variable, y
is the variable measured and dy is its uncertainty (1-sigma error
bar). If dy is not provided then it is assumed to be 0 for all data
points. The output is a data frame of length N with columnes for t,
y and dy.
If csv is set to TRUE then the file will be read as a CSV
file. If header is set to TRUE then the first line of the
file is assumed to be a header (and is then ignored).
The optional input cols can specify which columns contain the
t, y and dy data, e.g. cols = c(2,4,5).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.