upload.dataset: Upload an R data frame to an AzureML workspace.

Description Usage Arguments Value Note See Also Examples

View source: R/datasets.R

Description

Upload any R data frame to an AzureML workspace using the GenericTSV format.

Usage

1
upload.dataset(x, ws, name, description = "", family_id = "", ...)

Arguments

x

An R data frame object

ws

An AzureML workspace reference returned by workspace.

name

A character name for the new AzureML dataset (may not match an existing dataset name)

description

An optional character description of the dataset

family_id

An optional AzureML family identifier

...

Optional additional options passed to write.table

Value

A single-row data frame of "Datasets" class that corresponds to the uploaded object now available in ws$datasets.

Note

The additional write.table options may not include sep or row.names or file, but any other options are accepted. The AzureML API does not support uploads for _replacing_ datasets with new data by re-using a name. If you need to do this, first delete the dataset from the AzureML Studio interface, then upload a new version.

See Also

Other dataset functions: datasets, delete.datasets, download.intermediate.dataset, workspace

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
  library(AzureML)
  
  ws <- workspace()
  
  # Upload the R airquality data.frame to the workspace.
  upload.dataset(airquality, ws, "airquality")

  # Example datasets (airquality should be among them now)
  head(datasets(ws))

  # Now delete what we've just uploaded
  delete.datasets(ws, "airquality")

## End(Not run)

AzureML documentation built on July 28, 2019, 1:02 a.m.