as.data.frame.tb: convert texblock to data.frame

Description Usage Arguments Value Examples

View source: R/casting.R

Description

convert a texblock class into a data.frame

Usage

1
2
## S3 method for class 'tb'
as.data.frame(x, ...)

Arguments

x

texblock object

...

pass convert as a boolean argument to apply type.convert to the output columns

Value

data.frame

Examples

1
2
3
4
5
x <- '1'
class(x) <- 'tb'
x1 <- x+x
as.data.frame(x1)
as.data.frame(x1,convert = TRUE)

metrumresearchgroup/texblocks documentation built on July 18, 2020, 1:45 a.m.