
Last chance! 50% off unlimited learning
Sale ends in
Adds values from columns in 'new.data' to 'data' by keys.
addData(
data,
new.data,
by.col,
then.by.col = NULL,
exact = TRUE,
ignore.case = TRUE,
what = NULL,
debug = FALSE
)
data.frame the original data frame containing additional columns.
Data frame containing your main data.
Data frame containing information you want to add to 'data'.
character, primary key column.
character, secondary key column.
logical, TRUE matches keys exact.
logical, TRUE ignore case.
character vector defining columns to add. Default is all new columns.
logical indicating printing debug information.
Information in columns in data frame 'new.data' is added to data frame 'data' based on primary key value in column 'by.col', and optionally on secondary key values in column 'then.by.col'.
# Get marker names and alleles for Promega PowerPlex ESX 17.
x <- getKit("ESX17", what = "Allele")
# Get marker names and colors for Promega PowerPlex ESX 17.
y <- getKit("ESX17", what = "Color")
# Add color information to allele information.
z <- addData(data = x, new.data = y, by.col = "Marker")
print(x)
print(y)
print(z)
Run the code above in your browser using DataLab