Hi had a question on how to create bivariate tables on R'
library(data.table)
dat<-data.table(Dystrophy_extraction)
library(dplyr)
library(magrittr)
#need to convert numeric into characters
dat %<>% mutate_if(is.numeric,as.character)
attach(dat)
library(Publish)
write.csv(
summary(univariateTable( subgroup~ variable+ variable, data=dat)), file=".csv", row.names=F)
This is the code im using and I essentially want to add another subgroup, but I keep getting an error when I do that.
Any help would be much appreciated