0
我正在讀[進口CSV數據進入的Neo4j] [1],我試圖執行Neo4j的:錯誤:在 「LOAD CSV」 中的R降價意想不到符號
library("RNeo4j")
library("curl")
graph <- startGraph("http://localhost:7474/db/data", username = "neo4j", password = "")
clear(graph, input = F)
LOAD CSV WITH HEADERS FROM "file:///data//airlines.csv" AS row
CREATE (n:airlines)
SET n = row,
n.carrier = toFloat(row.carrier),
n.name = toFloat(row.name)
我得到了以下錯誤消息:
> > LOAD CSV WITH HEADERS FROM "file:///data//airlines.csv" AS row
Error: unexpected symbol in "LOAD CSV"
> CREATE (n:airlines)
Error: could not find function "CREATE"
> SET n = row,
Error: unexpected symbol in "SET n"
> n.carrier = toFloat(row.carrier),
Error: unexpected ',' in " n.carrier = toFloat(row.carrier),"
> n.name = toFloat(row.name)
Error: could not find function "toFloat"
>
請分享您使用的完整聲明,而不僅僅是一部分。 –
@LendaLD請添加更多詳情。這些標籤表明您正在使用R的Neo4j。您如何將Cypher命令傳遞給Neo4j? –
@[email protected]áborSzárnyas感謝您的好意,我實際上不知道如何將密碼指令傳遞給Neo4j,並且我只是按照官方指南將'LOAD CSV'直接放入我的代碼中。 – LenaLD