[R] dataframe operation

Indermaur Lukas Lukas.Indermaur at eawag.ch
Wed Jan 24 20:27:04 CET 2007


hi
i have a dataframe "a" which looks like:
 
column1, column2, column3
10,12, 0
NA, 0,1
12,NA,50
 
i want to replace all values in column1 to column3 which do not contain "NA" with values of vector "b" (100,200,300).
 
any idea i can do it?
 
i appreciate any hint
regards
lukas
 
 
 
°°° 
Lukas Indermaur, PhD student 
eawag / Swiss Federal Institute of Aquatic Science and Technology 
ECO - Department of Aquatic Ecology
Überlandstrasse 133
CH-8600 Dübendorf
Switzerland
 
Phone: +41 (0) 71 220 38 25
Fax    : +41 (0) 44 823 53 15 
Email: lukas.indermaur at eawag.ch
www.lukasindermaur.ch



More information about the R-help mailing list