append_no_duplicate_names: Add elements to a vector, only if names are not duplicated in...

View source: R/import_sdtm.R

append_no_duplicate_namesR Documentation

Add elements to a vector, only if names are not duplicated in x and values

Description

Add elements to a vector, only if names are not duplicated in x and values

Usage

append_no_duplicate_names(
  x,
  values,
  after = length(x),
  ignore_blank = TRUE,
  method = stop
)

Arguments

x, values, after

See base::append

ignore_blank

Ignore blank names? (Blank names "" occur when an unnamed vector is appeneded to a named vector.)

method

Function to notify the user if a duplicate is provided? It is called with a message indicating the name of the duplicate. Typically this will be stop or warning.

Value

See base::append


billdenney/Rsdtm documentation built on Dec. 7, 2022, 2:11 a.m.