Search
 
SCRIPT & CODE EXAMPLE
 

R

how to get quantile summary statistics in r summarise

five_number_summary <- iris %>% 
  group_by(Species) %>% 
  summarise_at(vars(Sepal.Length),
               list(min=min, Q1=~quantile(., probs = 0.25),
                    median=median, Q3=~quantile(., probs = 0.75),
                    max=max))
five_number_summary
# A tibble: 3 x 6
  Species      min    Q1 median    Q3   max
  <fct>      <dbl> <dbl>  <dbl> <dbl> <dbl>
1 setosa       4.3  4.8     5     5.2   5.8
2 versicolor   4.9  5.6     5.9   6.3   7  
3 virginica    4.9  6.22    6.5   6.9   7.9
Comment

PREVIOUS NEXT
Code Example
R :: for R 
R :: reduce ggtitle size 
R :: Derive end of the week date in r 
R :: R language get all columns in a dataset 
R :: R vector all but last 
R :: change labels in legend R 
R :: r get date from year and day 
R :: r remove regex from string 
R :: log likelihood in r 
R :: extract attribute in r 
R :: detect factors in r 
R :: logistic distribution CDF in r 
R :: str_extract all using mutate and toString 
R :: extract df from lm in r 
R :: extract residual standard error from lm in r 
R :: store list in data.frame R 
R :: ggplot2 color gradient 
R :: get string without ending in R 
Rust :: rustlang error: linker `link.exe` not found 
Rust :: read file buffer rust 
Rust :: rust null 
Rust :: convert number to string rust 
Rust :: rust lang start a new project 
Rust :: rust regex split 
Rust :: Repeat the given string exactly n times 
Rust :: armanriazi•rust•collection•hashmap•avoid_of_duplicate 
Rust :: allow dead code 
Rust :: armanriazi•rust•thread•spawning 
Rust :: armanriazi•rust•unsafe•static 
Lua :: how to delete a key in a table lua 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =