Learn R Programming

ncodeR (version 0.2.0.1)

as.data.frame.Code: Title

Description

Title

Usage

# S3 method for 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

Run this code
# NOT RUN {
data(RS.data)
rs = RS.data
newcode = create.code(name = "Data", expressions = c("number","data"), excerpts = rs$text)
as.data.frame(newcode)

# }

Run the code above in your browser using DataLab