saveMetric | R Documentation |
Saves results from getMetric
to a text file.
saveMetric(x, file = "", ...)
## S3 method for class 'data.frame'
saveMetric(x, file = "", ...)
## S3 method for class 'list'
saveMetric(x, file = "", ...)
x |
|
file |
|
... |
Further arguments passed to |
This is a wrapper for write.table
.
If x
is a list
, one text file is written for each list component. If x
is a data.frame
, one file is written.
write.table
,
getMetric
res <- getMetric(dataMZ, c("D1CC", "V10%_CC"),
sortBy=c("metric", "structure"),
splitBy="patID")
## Not run:
# not run
saveMetric(res, file="metricsResults.txt", sep="\t")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.