find.dataset: find a column in a dataframe

Description Usage Arguments Details Value Author(s) Examples

View source: R/General_Utils.R

Description

find a column in a dataframe where it is a priori unkown wether the column is present or not.

Usage

1
find.dataset(dataset, TermsList = c())

Arguments

dataset

data.frame. A dataframe where to find a column based on the columnames

TermsList

a character vector with the columnnames to look for. They will be handled in the order given, and the search will stop at the first match

Details

An internal function to find information in incomming data of which the format and content is unknown

Value

a character vactor with the content of the matching column (or the first match), or an empty vector

Author(s)

Maxime Sweetlove

Examples

1
find.dataset(dataset=data.frame(var1=1:3, var2=1:3), "var2")

biodiversity-aq/OmicsMetaData documentation built on Dec. 19, 2021, 9:44 a.m.