
Last chance! 50% off unlimited learning
Sale ends in
txt <- "
Democrat, Independent, Republican
M, 762, 327, 468
F, 484, 239, 477"
(tab <- TextToTable(txt, header=TRUE, sep=",", dimnames=c("gender", "party")))
Run the code above in your browser using DataLab