

Regarding plots, we present the default graphs and the graphs from the well-known : library(pastecs) See the different variables types in R if you need a refresh.

Length and width of the sepal and petal are numeric variables and the species is a factor with 3 levels (indicated by num and Factor w/ 3 levels after the name of the variables). The dataset contains 150 observations and 5 variables, representing the length and width of the sepal and petal and the species of 150 flowers. # $ Species : Factor w/ 3 levels "setosa","versicolor".: 1 1 1 1 1 1 1 1 1 1. This dataset is imported by default in R, you only need to load it by running iris: dat <- iris # load the iris dataset and renamed it datīelow a preview of this dataset and its structure: head(dat) # first 6 observations # Sepal.Length Sepal.Width Petal.Length Petal.Width Species We use the dataset iris throughout the article. See online or in the above mentioned article for more information about the purpose and usage of each measure. In this article, we focus only on the implementation in R of the most common descriptive statistics and their visualizations (when deemed appropriate).

Location measures give an understanding about the central tendency of the data, whereas dispersion measures give an understanding about the spread of the data. There exists many measures to summarize a dataset. If well presented, descriptive statistics is already a good starting point for further analyses. It allows to check the quality of the data and it helps to “understand” the data by having a clear overview of it. Descriptive statistics is often the first step and an important part in any statistical analysis.
#R STUDIO SUMMARY SERIES#
To briefly recap what have been said in that article, descriptive statistics (in the broad sense of the term) is a branch of statistics aiming at summarizing, describing and presenting a series of values or a dataset.
#R STUDIO SUMMARY HOW TO#
To learn more about the reasoning behind each descriptive statistics, how to compute them by hand and how to interpret them, read the article “ Descriptive statistics by hand”. This article explains how to compute the main descriptive statistics in R and how to present them graphically.
