favour: Favour datasets in a database

View source: R/consolidate.R

favourR Documentation

Favour datasets in a database

Description

Favour datasets in a database

Usage

favour(database, dataset)

favor(database, dataset)

Arguments

database

A many database

dataset

The name of one, or more, datasets within the database 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 database with datasets re-ordered accordingly

Examples

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

globalgov/qData documentation built on June 10, 2022, 10:41 a.m.