saveMetric: Save DVH metrics to file

Description Usage Arguments Details Value See Also Examples

View source: R/save.R

Description

Saves results from getMetric to a text file.

Usage

1
2
3
4
5
6
7
saveMetric(x, file = "", ...)

## S3 method for class 'data.frame'
saveMetric(x, file = "", ...)

## S3 method for class 'list'
saveMetric(x, file = "", ...)

Arguments

x

data.frame or list - the result from getMetric.

file

character. Path to file.

...

Further arguments passed to write.table - e.g., dec="." to define the decimal separator as point or sep="\t" to define the column sepator as tab.

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

write.table, getMetric

Examples

1
2
3
4
5
6
7
8
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)

Example output



DVHmetrics documentation built on April 16, 2021, 9:06 a.m.