0

我成功运行了基本查询,并且运行良好。

m<- mongo(collection = "airlines_Mon", db = "airlines_Mon", url = "mongodb://localhost",
verbose = TRUE,options = ssl_options())
m$insert(airlines_Mon)
airlines_Mon1 = m$find('{}')
head(airlines_Mon1)

我得到以下结果

head(airlines_Mon1)
      V1                     V2
1 carrier                   name
2      9E      Endeavor Air Inc.
3      AA American Airlines Inc.
4      AS   Alaska Airlines Inc.
5      B6        JetBlue Airways
6      DL   Delta Air Lines Inc.

然后我尝试检索数据的某些部分,例如

m$find( '{ "carrier": "UA" }' )

我得到了以下结果

Imported 0 records. Simplifying into dataframe...

有谁知道为什么?提前非常感谢!!

4

0 回答 0