0

I have been trying to create bivariate tables on R using the summary(univariateTable function. I have been trying

write.csv(
  summary(univariateTable(subgroup1+subgroup2~
                            variable    + variable

Which should mean stratification along the two subgroups of all variables.. But I keep getting an error: non numeric argument to binary operator. Is there a way to fix this?

Shadow
  • 33,525
  • 10
  • 51
  • 64
  • 2
    Hi there and welcome to SO. Please share a [reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) or [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) with an example input. – Martin Gal Dec 22 '22 at 22:43
  • Are you trying to add two factors? – IRTFM Dec 23 '22 at 00:29

0 Answers0