add_many_sites: Load many sites into a database in parallel.

Description Usage Arguments

View source: R/add-many.R

Description

Load many sites along with rainfall data into a database in parallel.

Usage

1
2
3
add_many_sites(db_connection, site_numbers, type = c("rainfall",
  "max_temperature", "min_temperature", "solar_exposure"), n_parallel = 8,
  batch_size = 40)

Arguments

db_connection

A connection to an initialised bomdata database.

site_numbers

A vector of site numbers to load. Sites that already exist within the database will be ignored.

type

Observation type to load.

n_parallel

The number of parallel workers to run to download sites. Only works in mclapply works on your machine.

batch_size

The number of sites to download before committing their data to the database.


mbertolacci/bomdata documentation built on May 22, 2019, 12:19 p.m.