Displaying 1 result from an estimated 1 matches for "ratenew".
Did you mean:
ateneo
2011 Apr 18
2
SQLDF syntax
Hi,
I am new to R and trying to migrate from SAS. I am trying to use sqldf to
create a new table from existed table and change some of the columns. I have
table called DataOld with columns commodity, rate and total and I am trying
to create new table called DataNew with columns commodity, ratenew and
totalNew.
> sqldf("create table datanew as select commodity, ratenew as rate * 10,
> totalnew as total *10 from DataOld")
I got error message " Error in sqliteExecStatement(con, statement,
bind.data) :
RS-DBI driver: (error in statement: near "*": syntax erro...