search for: whereasdf

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

Did you mean: whereas
2011 Jun 14
0
sqlFetch and factor conversion
...also results in some behavior that I don't understand. For example, DF$TOD <- with(DF, ifelse(TD == "AFTERNOON", 2, 1)) does not work, however DF$TD outputs the TD vector, whereas DF$TD$ outputs nothing. Furthermore, DF[ , 'TD$'] provides the same vector as does DF$TD, whereasDF[ , 'TD'] gives an error ("undefined columns selected"). I don't understand why TD is valid here (DF$TD) but not here (DF[ , 'TD']). My goal is to import the Access data table as a data frame with character vectors where factors would otherwise be and the column name...