data2db: Run crawler and save to MongoDB

Description Usage Arguments Value Examples

Description

Run crawler and save to MongoDB

Usage

1
data2db(l, m, key = "full_nm")

Arguments

l

A list containing data.table, data.frame.

m

MongoDB collection object in mongolite.

key

Name of key field to used as _id. If NULL, it will use ObjectID. By default is "full_nm"

Value

Logical. Success or not.

Examples

1
2
3
4
5
6
7
8
## Not run: 
mongo_con("hostname", "dbname", 
          collection="STORE_ADDR", "user", "passwd")

d <- run_api("711", "family")
data2db(d, m)

## End(Not run)

leoluyi/address_crawler documentation built on May 21, 2019, 5:09 a.m.