dplyr filter column of points.2 0, 0.0014969, 0.0030036, 0.004924

How to dplyr filter a double in a column in R

dat %>% filter(Points.2 == 0, 0.0014969, 0.0030036, 0.004924)

targets <- c(0, 0.0014969, 0.0030036, 0.004924)
dat %>% filter(Points.2 %in% targets)
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.

To illustrate this, please provide a reprex

Thank you for the help

ggplot(data, aes(x=Points.2, y=U.0)) +
geom_bar(stat='identity')

how to name against the bars, not along the x axis

Use geom_text() or geom_label()