Skip to content
Prev 174634 / 398528 Next

Replacing a few variable values within a DataFrame...

On 23 Mar 2009, at 17:39, Jason Rupert wrote:

            
How about,

test_data2_df[test_data2_df$Location=="HSV", ] # these are the values  
to change

test_data2_df$housesize[test_data2_df$Location=="HSV"]  <- 28.3 # or  
whatever values


HTH,

baptiste
_____________________________

Baptiste Augui?

School of Physics
University of Exeter
Stocker Road,
Exeter, Devon,
EX4 4QL, UK

Phone: +44 1392 264187

http://newton.ex.ac.uk/research/emag