Hello R community,

I need a bit of direction. I am new to R, so please forgive any mistakes or
confusion.


Here is an example of the columns and data contained in my data frame.
Number: Factor w 345196 levels "1.001", "1.002", "1.003", "2.001", "2.002",
"2.003"
Name: factor w 2 levels ("X", "Y")
Variable: factor w 21 levels "unknown", "known"
Amount: num(1, 2, 3, 4, 5, 6)

My objective is to filter based on numbers ending in .002 within column
Number

I have used the melt function to organize the data and then tried

filter(df, PO.Number %in% c(.002))

However, this didn't work.

Thanks for the help.

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to