Learn R Programming

scan (version 0.64.0)

convert: Convert

Description

Converts an scdf object into R code

Usage

convert(
  scdf,
  file = "",
  study_name = "study",
  case_name = "case",
  inline = FALSE,
  indent = 2,
  silent = FALSE
)

Value

Returns a string (invisible).

Arguments

scdf

A single-case data frame. See scdf() to learn about this format.

file

A filename for exporting the syntax.

study_name

Character string. Name of the study object.

case_name

Character string. Name of the scdf objects.

inline

If TRUE, phase definition is in an online version.

indent

Integer. Indentation.

silent

If TRUE, syntax is not printed to the console

See Also

Other io-functions: read_scdf(), write_scdf()

Examples

Run this code
filename <- tempfile()
convert(exampleABC, file = filename)
source(filename)
all.equal(study, exampleABC)
unlink(filename)

Run the code above in your browser using DataLab