anonymize: anonymize

Description Usage Arguments Value Author(s) See Also

View source: R/tools.R

Description

The function will anonymize your data

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
anonymize(
  df,
  simple_names = TRUE,
  replace_rownames = FALSE,
  colString = "var",
  rowString = "sample"
)

anonymise(
  df,
  simple_names = TRUE,
  replace_rownames = FALSE,
  colString = "var",
  rowString = "sample"
)

Arguments

df

data frame to anonymise

simple_names

logical, column names will be converted to letters. If FALSE, colString will be used for renaming

replace_rownames

if TRUE, replacement with string from rowString argument

colString

how the columns are to be named

rowString

how the rows are to be named

Value

Data frame

Author(s)

Modified from Stackoverflow from user Etienne Low-Décarie and Gavin Simpson

See Also

https://stackoverflow.com/a/10455729/7941188 and https://stackoverflow.com/a/10458688/7941188


tjebo/tjebtools documentation built on Nov. 15, 2021, 11:21 p.m.