Description Usage Arguments Details Value See Also Examples
Write object of S3-class
drift in Spectrotest
format to text file or connection. Spectrotest format is a
CSV-compatible
text format with special meta-tags,
so it could be easily opened by any
spreadsheet software.
1 | write.drift(x, file = "")
|
x |
an object of |
file |
a |
Argument file
has the same meaning as in write
.
Spectrotest formatted string, invisibly.
Other drift:
as.data.frame.drift()
,
cbind.drift()
,
channel()
,
coal_drift()
,
diff.drift()
,
median.drift()
,
plot.drift()
,
read.drift()
,
slice()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | s <- coal_drift()
# Write to text file:
write.drift(s, "s.ir")
# Write to connection:
con <- xzfile("s.xz", open = "w")
write.drift(s, con)
close(con)
rm(con)
# Light unit tests:
s0 <- read.drift("s.ir")
stopifnot(all(s0 == s))
unlink("s.ir")
con <- xzfile("s.xz", open = "r")
s0 <- read.drift(con)
close(con)
rm(con)
stopifnot(all(s0 == s))
unlink("s.xz")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.