favour {manydata}R 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"))


[Package manydata version 0.9.3 Index]