local.pull: pulling data from local RDS database

Description Usage Arguments Value

View source: R/local.pull.R

Description

pulling data from local RDS database

Usage

1
local.pull(path, vw, ids = NULL, vars = NULL, id.type = "pnr")

Arguments

path

path to local project-specific database (db_build output folder)

vw

name of view file / SQL table to pull

ids

optional vector of ids to pull (ignoring all non-matching rows). If ids are record ids, specify id.type as 'rid'.

vars

optional list of variables to pull.

id.type

'pnr' for personal id number, 'pid' for using record ids as key.

Value

returns an RDS file containing specified source data. If ids are specified, only rows matching an id are returned.


socioskop/grit documentation built on Dec. 23, 2021, 3:30 a.m.