[R] Aligning names with variable values

Barry King
Sat, 15 Feb 2014 09:34:36 -0000

I wish to compare prices in a dataframe to calculated upper limits and
then reject (collect in a reject dataframe) those rows with prices that
are above the upper limit but I am having trouble aligning the variable
value in the Prices dataframe with the names in the upper limit file.

> upperLimit
  Full Season     Half Season
       779.12          231.11

> Prices.df
        rowID  Price
1 Full Season 417.95
2 Full Season 679.43
3 Full Season 839.79
4 Half Season 159.39
5 Half Season 256.93

Any assistance you can provide is greatly appreciated.

Barry King

	[[alternative HTML version deleted]]