read_latex: Read latex output into R

Description Usage Arguments Examples

Description

This function reads in Latex code of a regression summary into R

Usage

1
read_latex(latex_output, output = "coef")

Arguments

latex_output

The latex code to be converted into R objects

output

A character vector specifying which type of regression output should be converted to an R object. Options are 'coef', 'stats', and 'extra'

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
height <- runif(100, 60, 78)
dad_height <- runif(100, 66, 78)
mom_height <- runif(100, 60, 72)

model <- lm(height ~ dad_height + mom_height)
latex_output <- regtable(list(model), 
   est = c('dad_height', 'mom_height'), 
   output_format = "latex")

latex_coef <- read_latex(latex_output, output = 'coef')

yixinsun1216/catwalk documentation built on May 31, 2019, 4:56 a.m.