om_download_at: Download AirTable data

Description Usage Arguments Value Currently allowed input Examples

View source: R/cleaning.R

Description

This function downloads current AirTable data

Usage

1
2
3
4
5
6
7
8
9
om_download_at(
  key = NULL,
  tables = c("AccessCodes", "ParticipantProgress", "InstructorSurveyV2",
    "TechnicalInquiries"),
  clean = F,
  file = NULL,
  v6.1 = F,
  omkey_path = NULL
)

Arguments

key

key for AirTable API

tables

specify which tables you want to download

clean

clean dataset and construct measures (only works for Assessment V6 and V7)

file

specify path to download to (only works for Assessment V6 and V7)

Value

a list with (several) dataframe(s)

Currently allowed input

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
#Here is a code example that will download Assessment V6,
#clean it, save it into a folder called "Data" under
#Research and filter down to only include V6.1 data.
key <- readr::read_lines("../../Research/Projects/Keys/airtabler.txt")

assessmentv6 <- om_download_at(key,
                              tables = "AssessmentV6",
                              clean = TRUE,
                              file = "../../../Data/assessmentv6.1.csv",
                              v6.1 = TRUE)


#Here is another example code for downloading a clean version of Assessment v7:

assessmentv7 <- om_download_at(key,
                              tables = "AssessmentV7",
                              clean = TRUE)

openmindplatform/openmindR documentation built on Nov. 13, 2021, 2:13 p.m.