10/17/2023 0 Comments Syntax schreiben spss 25![]() Mtcars %>% calc_cro_cpct(cyl, list(total(), am, vs)) # or, the same result with another notation # just simple crosstabulation, similar to base R 'table' functionĬro_cpct(mtcars$cyl, list(total(), mtcars$am, mtcars$vs)) Documentation for other functions, such as cro_cases for counts, cro_rpct for row percent, cro_tpct for table percent and cro_fun for custom summary functions can be seen by typing ?cro and ?cro_fun in the console. For simplicity we demonstrate here only cro_cpct which caluclates column percent. library(expss)įor quick cross-tabulation there are fre and cro family of function. Then we can continue with tables creation. ![]() ![]() Let’s start with adding labels to the dataset. We will use for demonstartion well-known mtcars dataset.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |