bef.portal.upload.categories: Upload a category set

Description Usage Arguments Value Examples

Description

This function is thought for data admin of a BEFdata portal. It uses the data haromization features provided by the BEFdata portal. In order to do harmonize a datagroup you download dthe category with the command below: bef.portal.get.categories_for(datagroups_id = 22)

Usage

1
2
  bef.portal.upload.categories(datagroup_id, categories,
    curl = getCurlHandle())

Arguments

datagroup_id

Categories ID you like to harmonize. You can find this in the URL of the category.

categories

Either a data frame with the categories or a csv containing the categories and merge ID and stuff downloaded from the portal.

curl

Pass in a curl handle with own options or to reduce memory footprint.

Value

Returns a status message whether the upload was successful or not.

Examples

1
2
3
4
5
## Not run: 
  dataframe = my_categories_df
  bef.portal.upload.categories(categories_id = 22, categories = dataframe)
      
## End(Not run)

rbefdata documentation built on May 2, 2019, 8:39 a.m.