lookup: For looking up variables from one dataset and then add them...

lookupR Documentation

For looking up variables from one dataset and then add them to another one.

Description

Use to add a column (value) to a dataset (samples), from another dataset (lookup), based on an identifier that exists in both (id_lookup)

Usage

lookup(
  df_samples,
  df_lookup,
  id_column,
  value_column,
  default = NA,
  overwrite = T
)

Arguments

df_samples

samples to look up

df_lookup

dataframe to look up against

id_column

common column between the two sets containing unique identifiers for rows

value

the value that is looked up and added to df_samples


Eiriksen/Genotools documentation built on Oct. 1, 2022, 1:40 a.m.