Skip to content

I need help on my code #596

Answered by R-icntay
Felipe-Basilio asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @SKAIWO , @jlooper ,

Firstly, apologies for seeing this late.

@SKAIWO, you would simply need the count verb from dplyr 🙂. See the example below:

# Load dplyr and palmerpenguins dataset
library(tidyverse)
library(palmerpenguins)

penguins %>% 
  slice_head(n = 5)
#> # A tibble: 5 x 8
#>   species island bill_length_mm bill_depth_mm flipper_length_~ body_mass_g sex  
#>   <fct>   <fct>           <dbl>         <dbl>            <int>       <int> <fct>
#> 1 Adelie  Torge~           39.1          18.7              181        3750 male 
#> 2 Adelie  Torge~           39.5          17.4              186        3800 fema~
#> 3 Adelie  Torge~           40.3          18                195      …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by paladique
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
3 participants