Sums & Means of Columns & Rows in R (Example) | colSums, rowSums, colMeans, rowMeans

Описание к видео Sums & Means of Columns & Rows in R (Example) | colSums, rowSums, colMeans, rowMeans

This video shows how to apply the R programming functions colSums, rowSums, colMeans & rowMeans. You can find more details here: https://statisticsglobe.com/r-colsums...

Code of this R tutorial:

set.seed(1234) # Set seed
data <- data.frame(matrix(round(runif(12, 1, 20)), # Create example data
nrow = 3, ncol = 4))
data # Print data to RStudio console

colSums(data) # Application of functions
rowSums(data)
colMeans(data)
rowMeans(data)

Комментарии

Информация по комментариям в разработке