You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to align a 'table1' to the center but the align = 'center' is being ignored. I changed the output from 'text' to 'latex' or 'markdown' as described on the function but it still doesn't work. Consider the example below from here: https://cran.r-project.org/web/packages/table1/vignettes/table1-examples.html
library(boot)
melanoma2 <- melanoma
# Factor the basic variables that
# we're interested in
melanoma2$status <-
factor(melanoma2$status,
levels=c(2,1,3),
labels=c("Alive", # Reference
"Melanoma death",
"Non-melanoma death"))
As a first attempt, we can do the following:
table1(~ factor(sex) + age + factor(ulcer) + thickness | status, output = 'markdown', align = 'center, data=melanoma2)
The text was updated successfully, but these errors were encountered:
I have a similar issue related to formatting alignment. I'm wondering if it's possible to have all descriptive statistics align either left or right, except for the first variable column. When I checked the original R codes, I found that the alignment is set to center, and there doesn't appear to be a parameter to control the alignment.
I am trying to align a 'table1' to the center but the align = 'center' is being ignored. I changed the output from 'text' to 'latex' or 'markdown' as described on the function but it still doesn't work. Consider the example below from here: https://cran.r-project.org/web/packages/table1/vignettes/table1-examples.html
The text was updated successfully, but these errors were encountered: