Quantcast
Channel: Error in rsqlite_send_query - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Error in rsqlite_send_query

$
0
0

I have the below table names lco_act_data

head(lco_act_data)X   SMZ_N     ACRES HH2030 ENR2030 RE2030 OFF2030 OTH2030 TOT20301       1 1603.5114  11325    1706    407    1368    1162    30852       2  907.2274   2079    1062    332    1028    1190    26543       3  758.8701   1407    1447     60    1949    1315    38294       4  170.1726    868       0     76     737     128     9645       5  820.4855   5338     304    198    1343    1597    32496       6 1596.5201   4584    3272    346    1351    1411    3195

When I'm trying to alter the table using sqldf function below its throwing me the below error and I can't seem to understand why.

lco_act_data_edited <- sqldf("ALTER TABLE lco_act_data ADD Jurisdiction varchar(20),State varchar(20),Region varchar(20),Subregion varchar(20)")

Error in rsqlite_send_query(conn@ptr, statement) : near ",": syntax error


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images