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
Watch video Specify Multiple Arguments in apply() Function in R (Example) | lapply, sapply & mapply | Remove NA online without registration, duration hours minute second in high quality. This video was added by user Statistics Globe 09 July 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,656 once and liked it 49 people.