Skip to content
Prev 302836 / 398503 Next

NADA Package: Referencing Data Frame Columns

Hi
analytes
was
indicator.
to
data
syntax.
separate
It is partly a matter of opinion. I personally prefer factors as they 
seems to me handier.
[1] "c" "e" "c" "d" "c" "d" "b" "d" "d" "d" "b" "a" "d" "b" "c" "e" "e" 
"c" "c"
[20] "c"

Suppose I want to change all "c" and "b" to "f"
[1] c e c d c d b d d d b a d b c e e c c c
Levels: a b c d e
[1] "a" "b" "c" "d" "e"

 In factors I can only change appropriate levels.
[1] f e f d f d f d d d f a d f f e e f f f
Levels: a f d e

Regards
Petr
http://www.R-project.org/posting-guide.html