[R] R help

Clayton Samples claytonsamples at gmail.com
Tue Oct 13 20:24:34 CEST 2015


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]]



More information about the R-help mailing list