我正在尝试使用下面的代码选择除前 2000 行之外的所有行,但出现以下错误。
new_table = sqldf("select units, count(*)
from old_table
group by units
where count(*) > 2000")
Error in sqliteExecStatement(con, statement, bind.data) :
RS-DBI driver: (error in statement: near "where": syntax error)