ODBC between SQL and R consistency of data -
i created odbc connection between sql server , r using rodbc package.
then loaded data 1 table
channel <- odbcconnect("ahmed") p <- sqlquery(channel, "select * table name")
i got following problem.
in 1 column in sql table have string "sziget festival" in r "sziget festival\r\n" , happens often.
furthermore when create subset dataframe
y<-p[p$brand=='sziget festival\r\n', ]
which should include 4 rows 100 rows of nas , @ end of data.frame 4 rows.
when checked on summary values of numeric data it's ok.
so please help
Comments
Post a Comment