saveMetric {DVHmetrics} | R Documentation |
Save DVH metrics to file
Description
Saves results from getMetric
to a text file.
Usage
saveMetric(x, file = "", ...)
## S3 method for class 'data.frame'
saveMetric(x, file = "", ...)
## S3 method for class 'list'
saveMetric(x, file = "", ...)
Arguments
x |
|
file |
|
... |
Further arguments passed to |
Details
This is a wrapper for write.table
.
Value
If x
is a list
, one text file is written for each list component. If x
is a data.frame
, one file is written.
See Also
Examples
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)
[Package DVHmetrics version 0.4.2 Index]