Learn R Programming

responsePatterns (version 0.1.1)

rp.save2csv: Export indices into a CSV file

Description

This functions exports the ResponsePatterns object indices and, optionally, coefficients and data.

Usage

rp.save2csv(
  rp.object,
  file = "rp_results.csv",
  csv = c("csv", "csv2"),
  include.coefs = TRUE,
  include.data = TRUE
)

Value

Exports a CSV file.

Arguments

rp.object

A ResponsePatterns object.

file

A string. A filename or a path.

csv

A string. Specify the CSV file format.

include.coefs

A logical scalar. Should the exported file include the coefficients?

include.data

A logical scalar. Should the exported file include the data?

See Also

rp.acors, rp.patterns, rp.indices

Examples

Run this code
rp <- rp.acors(rp.simdata, id.var="optional_ID")
if (FALSE) rp.save2csv(rp)
if (FALSE) rp.save2csv(rp, include.coefs=FALSE, include.data=FALSE)

Run the code above in your browser using DataLab