search for: ind_1

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

Did you mean: ind1
2010 Sep 06
3
Finding the two most recent dates
Dear R help, I have the following data frame: structure(list(prochi = c("ind_1", "ind_1", "ind_1", "ind_1", "ind_1", "ind_1", "ind_1", "ind_1", "ind_1", "ind_1"), date_1st_event = structure(c(14784, 14784, 14784, 14784, 14784, 14784, 14784, 14784, 14784, 14784 ), class = "Da...
2010 Apr 23
1
creating dummy with loop command‏
...ould be more explicit now, and you could help me more at this time. Thank you for your help in advance -------------------------- Serdal, I think what David is saying: just take those 2 variables you have and specify them as factors. Assuming your data frame is called "MyData": MyData$Ind_1<-as.factor(MyData$Ind_1) MyData$Ind_2<-as.factor(MyData$Ind_2) This way R will know they are not numeric variables but categorical variables. Then, when you do analyses using those variables, R will treat them as such and will build dummies "automatically" (e.g., if you use regres...