Learn R Programming

rbefdata (version 0.3.5)

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

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

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

Run this code
## Not run: 
#   dataframe = my_categories_df
#   bef.portal.upload.categories(categories_id = 22, categories = dataframe)
#       ## End(Not run)

Run the code above in your browser using DataLab