makeSentences: Make the SENTENCES table

Description Usage Arguments

Description

This function creates the SENTENCES database table from raw survey data.

Usage

1
makeSentences(df, masterList, con, updateID)

Arguments

df

Raw survey data as a data frame.

masterList

Master list of all sentences. ### XXX COME BACK TO THIS: HOW BEST TO LOAD AND UPDATE?

con

Connection to the current version of the database. Create the connection using RSQLite. For example: con <- dbConnect(RSQLite::SQLite(), here("database", "currentDB", "ygdpDB.db")) (for the database file ygdpDB.db, stored in "database/currentDB".)

updateID

Character string that will become the 'updateID' column for this table. For example, "survey11Add" for Survey 11.


kaijagahm/ygdpAddSurvey documentation built on July 22, 2021, 2:11 p.m.