Re: [R] adding column to data frame conditionally

2010-05-27 Thread Stephan Kolassa
Van: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Namens Kristina Schmitz Verzonden: donderdag 27 mei 2010 11:33 Aan: r-help@r-project.org Onderwerp: [R] adding column to data frame conditionally Dear all and thanks in advance for helping me with a rather stupid quest

Re: [R] adding column to data frame conditionally

2010-05-27 Thread Kristina Schmitz
lp-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Namens Kristina Schmitz Verzonden: donderdag 27 mei 2010 11:33 Aan: r-help@r-project.org Onderwerp: [R] adding column to data frame conditionally Dear all and thanks in advance for helping me with a rather stupid question: I impo

Re: [R] adding column to data frame conditionally

2010-05-27 Thread ONKELINX, Thierry
amens Kristina Schmitz > Verzonden: donderdag 27 mei 2010 11:33 > Aan: r-help@r-project.org > Onderwerp: [R] adding column to data frame conditionally > > Dear all and thanks in advance for helping me with a rather > stupid question: > I imported a data set ("freqg") in

[R] adding column to data frame conditionally

2010-05-27 Thread Kristina Schmitz
Dear all and thanks in advance for helping me with a rather stupid question: I imported a data set ("freqg") into R consisting of 14 variables. Now a want to compute a variable and add it in an additional column to my data frame. The value of this new variable ("condition") depends on the va