Displaying 1 result from an estimated 1 matches for "subjsex".
Did you mean:
subjet
2009 Apr 09
2
better way of recoding factors in data frame?
...taframes that share a number of rows (but some are unique to each data frame). Each row represents a subject in a study. The problem is that sex is coded differently in the two, including the way missing values are represented.
Here is an example of the merged dataframe:
> myFrame2
???SubjCode SubjSex? ? ? ? ? Sex
1? ? ? sub1? ? ???M? ? ? ???<NA>
2? ? ? sub2? ? ???F? ? ? ???<NA>
3? ? ? sub3? ? ???M? ? ? ???Male
4? ? ? sub4? ? ???M? ? ? ???<NA>
5? ? ? sub5? ? ???F? ? ? ???<NA>
6? ? ? sub6? ? ???F? ? ???Female
7? ? ? sub7? ? ? ? ? ? ? ???<NA>
8? ? ? sub8? ? ? ? ? ? ?...