View source: R/write_acttrust.R
write_acttrust | R Documentation |
tsibble
to a readable ActTrust filewrite_acttrust()
allows you to adapt and write a
tsibble
object to a readable ActTrust file.
Note that your data must conform to a predefined structure. See
?acttrust
to learn more.
ActTrust is a trademark of Condor Instruments Ltda.
write_acttrust(data, file, delim = ";", header = NULL)
data |
A |
file |
A string with a file path to write to. |
delim |
(optional) a string indicating the delimiter that must be used
to separate values. Valid delimiters are: |
header |
(optional) a string indicating the path to a file (usually
the raw data file) with the ActTrust header. This is not mandatory,
the ActTrust software can read files without it (default: |
write_acttrust()
requires the readr
package. If
you don't already have it installed, you can install it with:
install.packages("readr")
NA
valueswrite_acttrust()
will transform any NA
value to 0
. This is because
the ActTrust software only deals with numeric values.
An invisible NULL
. This function don't aim to return values.
Other utility functions:
aggregate_index()
,
find_epoch()
,
raw_data()
,
read_acttrust()
acttrust
file <- tempfile()
header <- raw_data("acttrust.txt")
write_acttrust(acttrust, file, header = header)
readLines(file, n = 30)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.