estimate_write_csv {decisionSupport}R Documentation

Write an Estimate to CSV - File.

Description

This function writes an estimate to the specified csv file(s).

Usage

estimate_write_csv(
  estimate,
  fileName,
  varNamesAsColumn = TRUE,
  quote = FALSE,
  ...
)

Arguments

estimate

estimate: Estimate object to write to file.

fileName

character: File name for the output of the marginal information of the estimate. It must end with .csv.

varNamesAsColumn

logical: If TRUE the variable names will be written as a separate column, otherwise as row names.

quote

a logical value (TRUE or FALSE) or a numeric vector. If TRUE, any character or factor columns will be surrounded by double quotes. If a numeric vector, its elements are taken as the indices of columns to quote. In both cases, row and column names are quoted if they are written. If FALSE, nothing is quoted. Parameter is passed on to write.table.

...

Further parameters to be passed to write.table.

Details

The marginal information of the estimate is written to file fileName=<marginal-filename>.csv. If the estimate contains correlated variables, the correlation matrix is written to the separate file <marginal-filename>_cor.csv.

See Also

estimate_read_csv, estimate, write.table


[Package decisionSupport version 1.113 Index]