copy_unique: Copy unique values to clipboard.

copy_uniqueR Documentation

Copy unique values to clipboard.

Description

  1. if input is a data.frame, do not return back a df

  2. by default will assume lotids being copied and format them unless set format_lotid = FALSE

  3. if format_step == TRUE, return a comma separated step name string instead

  4. if save_csv == TRUE, will save output to '1.lot_list.csv'

Usage

copy_unique(
  df = paste(utils::readClipboard(), collapse = ","),
  col = "value",
  sep = ",",
  reduce_only = FALSE,
  fix_len = FALSE,
  quotes = FALSE,
  save_csv = FALSE,
  ...
)

Arguments

df

a character string copied from clipboard, or a dataframe column

col

column name if df is a data frame

Value

a comma separated string w/ duplicates removed and a dataframe of unique values


fjoe88/d8ahelper documentation built on Feb. 6, 2023, 7:55 a.m.