favour: Favour datasets in a datacube

View source: R/consolidate.R

favourR Documentation

Favour datasets in a datacube

Description

Favour datasets in a datacube

Usage

favour(datacube, dataset)

favor(datacube, dataset)

Arguments

datacube

A many datacube

dataset

The name of one, or more, datasets within the datacube to be favoured over others.

Details

The dataset declared becomes the reference for the first non NA value. If more than one dataset is declared, please list datasets in increasing order of importance (.i.e. last dataset should be favoured over previous).

Value

The datacube with datasets re-ordered accordingly

Examples


favour(emperors, "UNRV")
favour(emperors, c("wikipedia", "UNRV", "britannica"))


globalgov/manydata documentation built on May 10, 2024, 9:48 p.m.