question about data description

#1
Dear forum members,

I have a tibble called smoke, containing 300 rows (one row for each subject) and two variables (group and race.) Group takes the values smoker, non-smoker or quit and race takes the values White, Black, Hispanic, Asian. I want to write a single line of R code which will yield an appropriate description of the relationship between smoking group and race.

I would really appreciate your input.

Ricky
 

rogojel

TS Contributor
#2
why a single line? Anyway it could look like summary(glm(....., family="binomial")) - logistic regression.

regards