This function creates the SENTENCES database table from raw survey data.
1 | makeSentences(df, masterList, con, updateID)
|
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.