sheet_download: Import a Google Sheet

Description Usage Arguments Value Note

View source: R/sheet_download.R

Description

The sheet_download function downloads the contents of a Google Sheet into an R object with with optional parameters for rows to skip and a missing value code upon import.

Usage

1
sheet_download(fileId, skipRows, missingValueCode)

Arguments

fileId

Sheet ID or URL of Google Sheet to import

skipRows

number of rows to skip when importing (optional; default:0)

missingValueCode

string to denote missing values (optional; default:"NA")

Value

R object of type tibble

Note

sheet_download is intended primarily as a helper function for batch downloading Google Sheets via a apply or map call but can be used independently.


lter/soilHarmonization documentation built on Nov. 8, 2021, 7:56 a.m.