>>>>> "Bernardo" == Bernardo Rangel tura <[EMAIL PROTECTED]> writes:
> Well I use this scripts to import the database > require(RODBC) > channel <- odbcConnectExcel("f:/teste.xls") > data <- sqlFetch(channel, "Sheet1") Just convert qw to a factor: require(RODBC) channel <- odbcConnectExcel("f:/teste.xls") data <- sqlFetch(channel, "Sheet1") data$qw <- factor(data$qw) > Tha factors variables have tha values enconde this form > (1=Yes,2=No and 9 = NA If you want to use those levels, you could use data$qw <- factor(data$qw, levels=c('Yes', 'No', 'NA')) Mike ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html