convert: Convert

View source: R/convert.R

convertR Documentation

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
)

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

Value

Returns a string (invisible).

See Also

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

Examples

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

scan documentation built on July 1, 2024, 9:07 a.m.