Добавить
Уведомления

Table by Group in R (Example) | table() Function | Frequency Counts of Elements in the Column "x"

How to make a table by group in the R programming language. More details: https://statisticsglobe.com/table-group-r R code of this video: data <- data.frame(x = letters[1:2], # Create example data frame group = c(rep(LETTERS[1:3], each = 3), "C")) data # Print example data frame tab_no_group <- table(data$x) # Create table without groups tab_no_group # Print table without groups tab_with_group <- table(data$group, data$x) # Create table with groups tab_with_group # Print table with groups Follow me on Social Media: Facebook – Statistics Globe Page: https://www.facebook.com/statisticsglobecom/ Facebook – R Programming Group for Discussions & Questions: https://www.facebook.com/groups/statisticsglobe Facebook – Python Programming Group for Discussions & Questions: https://www.facebook.com/groups/statisticsglobepython LinkedIn – Statistics Globe Page: https://www.linkedin.com/company/statisticsglobe/ LinkedIn – R Programming Group for Discussions & Questions: https://www.linkedin.com/groups/12555223/ LinkedIn – Python Programming Group for Discussions & Questions: https://www.linkedin.com/groups/12673534/ Twitter: https://twitter.com/JoachimSchork Music by bensound.com

12+
14 просмотров
2 года назад
3 декабря 2023 г.
12+
14 просмотров
2 года назад
3 декабря 2023 г.

How to make a table by group in the R programming language. More details: https://statisticsglobe.com/table-group-r R code of this video: data <- data.frame(x = letters[1:2], # Create example data frame group = c(rep(LETTERS[1:3], each = 3), "C")) data # Print example data frame tab_no_group <- table(data$x) # Create table without groups tab_no_group # Print table without groups tab_with_group <- table(data$group, data$x) # Create table with groups tab_with_group # Print table with groups Follow me on Social Media: Facebook – Statistics Globe Page: https://www.facebook.com/statisticsglobecom/ Facebook – R Programming Group for Discussions & Questions: https://www.facebook.com/groups/statisticsglobe Facebook – Python Programming Group for Discussions & Questions: https://www.facebook.com/groups/statisticsglobepython LinkedIn – Statistics Globe Page: https://www.linkedin.com/company/statisticsglobe/ LinkedIn – R Programming Group for Discussions & Questions: https://www.linkedin.com/groups/12555223/ LinkedIn – Python Programming Group for Discussions & Questions: https://www.linkedin.com/groups/12673534/ Twitter: https://twitter.com/JoachimSchork Music by bensound.com

, чтобы оставлять комментарии