Having difficulty in running a code chunk in R Markdown

can't understand where am I going wrong here. Could somebody help?

Hard to say without a reprex (see the FAQ). The first error shows that there is some disconnect between select() and the object that is being piped to it. But that's just a guess. Because screenshots.

Hi @red_devil, I see the attach image and find a error in line 30 when use pipe:

# this is not the pipe:
 >%>

Change with:

# This is the pipe:
 %>%

But like said @technocrat , is better if you put a reproducible example.

hey thanks for the help, I will try it out once and if it doesn't work then I will write down the code chunk here itself.