download_file_as_data_frame: Download dataset file onto a data frame.

Description Usage Arguments Value Examples

View source: R/download_file_as_data_frame.R

Description

Download dataset file onto a data frame.

Usage

1
download_file_as_data_frame(owner_id, dataset_id, file_name, col_types = NULL)

Arguments

owner_id

User name and unique identifier of the creator of a dataset or project

dataset_id

Dataset unique identifier

file_name

File name, including file extension.

col_types

column types specified in the same manner as the col_types parameter of readr::read_csv(), or pass NULL (the default) to detect column types automatically from the data.world table schema

Value

Data frame with the contents of CSV file.

Examples

1
2
3
4
5
6
## Not run: 
  my_df <- dwapi::download_file_as_data_frame(
    "user", "dataset",
    file_name = "file.csv")

## End(Not run)

datadotworld/dwapi-r documentation built on July 3, 2021, 3:40 a.m.