BEFdata R package

Basic R package to access data structures offered by any BEFdata portal instance.


News

rbefdata 0.3.5

  • Adds a vizaliation function. Now you can use "bef.portal.vizualize.keywords()" to get a nice wordcoud of your BEFdata portal.
  • Improves the functionality of the bef.portal.get.paperproposal function to return the data instead of returning the information about the proposal.
  • Shorter versions of function names now available as aliases
  • Adds helper to get datagroups (title, description, column_count, category_count)
  • Adds dataset update function "bef.portal.update.dataset()"
  • Adds freeformat attachment function "bef.portal.attach.to_dataset()" and "bef.portal.attach.to_proposal()"
  • Adds helper for categories URLs
  • Admin interface:
    • get categories of a datagroup bef.portal.get.categories_for()
    • New method to upload categories for harmonization
  • removes the tematres functions as they are now provided via the rtematres package

rbefdata 0.3.4

  • Introduces a helper "bef.extract.metadata()" which is a wrapper to the function attributes() and helps to extract the metadata information of a dataset object.

  • Introduces a helper that opens the URL to a dataset in the browser given an id bef.goto.dataset_page(id).

  • Adds base API for tematres bef.tematres.api() to easily exploit the vocabulary.

  • Adds base API for media wiki bef.mediawiki.api() to easily get descriptions of a term from a media wiki. It takes a term and the language of the Wikipedia queried can be changed by two character country code Wikipedia uses for its sub domains.

  • Adds an upload method for datasets (bef.portal.upload.dataset()). It takes a dataset object (data frame) or file path (to CSV file) for upload and a title.

  • Re-factors several functions as well as some names. Defuncts the old deprecates and adds new de-functioned functions.

  • Improves the metadata read from eml (ecological metadata language files) provided by the BEF-Data portal for each dataset. Now also supporting information about related material provided as freeformats for the dataset.

    x = bef.portal.get.metadata(dataset = 72)
    names(x)
    x$title
    x$abstract
    x$publicationDate
    x$language
    x$creators
    x$authors
    x$intellectualRights
    x$distribution
    x$keywords
    x$taxonomicextent
    x$sampling
    x$spatial_coverage
    x$temporal_coverage
    x$columns
    x$related_material
    

rbefdata 0.3.3

  • Adds aliases to all functions that omit the portal and tematres in the name e.g bef.portal.get.dataset -> bef.get.dataset
  • Small bugfix release: Removes internet connection test that made tests fail

rbefdata 0.3.2

  • minor bug fix release fixes broken tests
  • Brings back functions under the old names. But now a deprecation warning is displayed. The old function names will be removed in one of the next release cycles.

rbefdata 0.3.1

  • minor bugfix: Changed portal URL in options

rbefdata 0.3

  • New naming scheme introduced with this version. The names are now scoped via period. Deprecation notice is shown for old function names.

  • User credentials can be set globally via bef.options(user_credentials="your key"). Note this won't affect user provided full urls.

  • Download of free format files is now possible. The download folder can be set via the bef.options.

  • Improved wrapper bef.portal.get()

  • fixed error on empty fields in xml

rbefdata 0.2

  • New function bef.getdata() that wraps around all the getter functions of the BEFdata R package. So you can use the function to retrieve datasets, metadata as well as all associated datasets from a paper proposal and a range of datasets in one step if you provide the ids.

  • New functions bef.searchTematres("keyword"), bef.searchTematresUpper("keyword"), and bef.searchTematresLower("keyword") to query keywords from a tematres thesaurus server. You can set the URL via the bef.options(tematres_url="http://your.url.com") function

rbefdata 0.1

  • Initial setup of the BEFdata R package. It provided basic functionality to query data and metadata from a BEFdata portal dataset.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("rbefdata")

0.3.5 by Claas-Thido Pfaff, 4 years ago


https://github.com/befdata/rbefdata


Browse source code at https://github.com/cran/rbefdata


Authors: Claas-Thido Pfaff [cre, aut], Karin Nadrowski [aut], Xingxing Man [aut]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports XML, RCurl, rjson, wordcloud, rtematres, RColorBrewer

Suggests ggplot2, plyr


See at CRAN