search for: tp895726p3992067

Displaying 1 result from an estimated 1 matches for "tp895726p3992067".

2009 Jun 24
5
How to avoid ifelse statement converting factor to character
Hi R-helpers, Please see the below R output. The problem is that after running the ifelse statement, data$SOCIAL_STATUS is converted from a factor to a character. Is there some way I can avoid this conversion? Thanks in advance, Mark Na > str(data) 'data.frame': 2100 obs. of 11 variables: $ DATE : Factor w/ 5 levels "4-Jun-09","7-May-09",..: 1 1 1 1 1