Can't use %% to select a column in penguins dataset

I am working with 'penguins' dataset.
I have already installed and loded the "palmerpenguins" package and library.
Now, I am trying to use the pipe to select the 'species' column but it is giving me an error and I couldn't figure out what that means.

Code I am using:
penguins %%
select (species)

Error I am getting:
Error in select (species) : object 'species' not found

Please help...

P.S.- I am new to R and Rstudio.

The pipe operator is %>% or, more recently, |>. The %% operator is for the modulus function.

3 Likes

Hi @UpasanaSharma , use this sentence:

penguins   %>%
select(species)

Like said @FJCC

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.