I have a problem when the Stargazer function interprets the data in my data.frame as latex. I would like to find a way to suppress this star feature. See below.
z <- c("Bank of America Corp", "Citigroup Inc", "JPMorgan Chase & Co", "Morgan Stanley", "Wells Fargo & Co") s <- data.frame(z=z, l= c(100000, 25, 10000, 24, 100000)) library(stargazer) stargazer(s, type = "text", summary = FALSE)
Here the ampersand invokes a new column due to its value in latex. I confirmed this because I replaced both s and made the table print correctly.
z <- c("Bank of America Corp", "Citigroup Inc", "JPMorgan Chase and Co", "Morgan Stanley", "Wells Fargo and Co") s <- data.frame(z=z, l= c(100000, 25, 10000, 24, 100000)) library(stargazer) stargazer(s, type = "text", summary = FALSE)
Is there any parameter that I can call in the stargazer function to prevent this behavior?
source share