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
On this page of the site you can watch the video online Specify Multiple Arguments in apply() Function in R (Example) | lapply, sapply & mapply | Remove NA with a duration of hours minute second in good quality, which was uploaded by the user Statistics Globe 09 July 2021, share the link with friends and acquaintances, this video has already been watched 2,656 times on youtube and it was liked by 49 viewers. Enjoy your viewing!