Descriptive statistics are essential for summarizing and understanding data in R. Here are common functions and their uses:

1. Mean

  • Function: mean()
  • Description: Calculates the average of a numeric vector.
  • Example:
    data <- c(10, 20, 30, 40, 50)
    mean(data)
    
R_language

2. Median

  • Function: median()
  • Description: Finds the middle value of a sorted vector.
  • Example:
    median(data)
    
central_tendency

3. Standard Deviation

  • Function: sd()
  • Description: Measures the spread of data around the mean.
  • Example:
    sd(data)
    
data_variance

4. Summary Statistics

  • Function: summary()
  • Description: Provides a quick overview of data distribution.
  • Example:
    summary(data)
    
data_distribution

For more advanced statistical analysis, visit our Statistical Analysis Guide. 📊