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, duration hours minute second in high quality that is uploaded to the channel Statistics Globe 09 July 2021. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 2,656 times and liked it 49 visitors.