Skip to content
Prev 75226 / 398502 Next

more on vector vs array

If 'thr' were a vector with the stations as names,
then you could do (untested):

above <- dataframe1[, 'temp'] > thr[as.character(dataframe1[, 'station'])]

Patrick Burns
patrick at burns-stat.com
+44 (0)20 8525 0696
http://www.burns-stat.com
(home of S Poetry and "A Guide for the Unwilling S User")
alessandro carletti wrote: