as.data.frame.Code: Title

Description Usage Arguments Value Examples

View source: R/as.data.frame.Code.R

Description

Title

Usage

1
2
3
## S3 method for class 'Code'
as.data.frame(x, row.names = NULL, optional = FALSE,
  ...)

Arguments

x

Code object to convert

row.names

NULL or a character vector giving the row names for the data frame. Missing values are not allowed.

optional

logical. If TRUE, setting row names and converting column names

...

additional arguments to be passed to or from methods

Value

data.frame

Examples

1
2
3
4
data(RS.data)
rs = RS.data
newcode = create.code(name = "Data", expressions = c("number","data"), excerpts = rs$text)
as.data.frame(newcode)

ncodeR documentation built on Nov. 20, 2019, 1:07 a.m.