upload_data_frame: Upload a data frame as a file to a dataset.

Description Usage Arguments Value Examples

View source: R/upload_data_frame.R

Description

Upload a data frame as a file to a dataset.

Usage

1
upload_data_frame(data_frame, owner_id, dataset_id, file_name)

Arguments

data_frame

Data frame object.

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.

Value

Server response message.

Examples

1
2
3
4
5
6
7
8
df = data.frame(a = c(1,2,3), b = c(4,5,6))
## Not run: 
  dwapi::upload_data_frame(file_name = 'sample.csv',
    data_frame = df, owner_id = 'user', dataset_id = 'dataset')
  df %>% dwapi::upload_data_frame('user', 'dataset',
    file_name = 'sample.csv')

## End(Not run)

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