Descriptive statistics in R & Rstudio | Research Guide
Key points Descriptive analysis is the process of summarizing, describing, and presenting the main features of a dataset. Descriptive statistics are numerical or graphical summaries of a dataset, such as mean, median, mode, standard deviation, quartiles, range, skewness, kurtosis, correlation, etc. R is a powerful and versatile tool for data science, which provides various functions and packages for calculating and displaying descriptive statistics. The summary() and sapply() functions are built-in functions in R that can obtain descriptive statistics for a data frame or a list of data frames. The descstat, a function in rstudio, aids in performing detailed descriptive statistics and summarytools packages are additional packages in R that can compute and display descriptive statistics conveniently and elegantly and generate a descriptive analysis report in various formats. Table of Contents Code used in this article Package Function Description base summary() Summarize an object base sapply() Apply f…