How to transfer several parameters to the family of apply functions in the R programming language. More details: https://statisticsglobe.com/specify-m...
R code of this video:
data <- data.frame(x = c(1:5, NA), # Example data
y = c(1:6))
data # Print example data
apply(data, 2, mean) # apply() without additional arguments
apply(data, 2, mean, na.rm = TRUE) # apply() with additional argument
Follow me on Social Media:
Facebook: / statisticsglobecom
LinkedIn: / statisticsglobe
Twitter: / joachimschork