search for: tmpnew

Displaying 2 results from an estimated 2 matches for "tmpnew".

Did you mean: tempnew
2009 Jun 18
3
merging data.frames of different length
hi, I have two data.frames each with two columns; x1 1 4 1 3 1 6 2 9 2 2 2 5 3 6 3 7 3 4 x2 1 -3 1 -7 2 -3 2 -2 2 -8 3 -1 3 -2 3 -1 now I want to merge this data.frames to one data.frame. The problem is, that sometimes there is a different number of elements per category. (like above x1 has 3 values for the value 1 in the first row, but x2 has only 2 values for the value 1 in the
2006 Nov 20
4
how to use the switch statement
Good morning, I am trying to recode the values of a column in a data frame and, instead of using a long series of if/else statements I would like to use a switch (as it is, for instance, in the C programming language). I have a column of this type: AT BB B1 B1 CC CC T6 B1 CC BB TT AT AT AT TT BB ... and I need to change this coding (if it's AT then it should be A1, if it's BB then