View source: R/star_table_notes.R
star_notes_tex | R Documentation |
stargazer
tex table notesstargazer
tex table notes
star_notes_tex(star, note.type = c("caption", "threeparttable"), note)
star |
|
note.type |
the type of latex note to be used. Options include
|
note |
the note to be added to the latex table |
## -- Regression Example -- ##
library(stargazer)
data(mtcars)
mod.mtcars.1 <- lm(mpg ~ hp + wt, mtcars)
mod.mtcars.2 <- lm(mpg ~ hp + wt + cyl, mtcars)
mod.mtcars.3 <- lm(hp ~ wt + cyl, mtcars)
##latex example
star.out <- stargazer(mod.mtcars.1, mod.mtcars.2, mod.mtcars.3,
type = "latex")
print(star.out)
##use latex caption package
star_notes_tex(star.out, note = "my table notes")
##use latex caption package
star_notes_tex(star.out, note.type = "caption", note = "my table notes")
##use latex threeparttable package
star_notes_tex(star.out, note.type = "threeparttable", note = "my table notes")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.