synthesise: Generate a basic synthetic dataset based on a dataset...

View source: R/SimulatedDataFunctions.R

synthesiseR Documentation

Generate a basic synthetic dataset based on a dataset supplied which maintains key relationships.

Description

Used to generate an easily sharable data dictionary for an R dataframe. This supports the following classes: numeric, integer, logical, Date, character, String, factor, ordered.

Usage

synthesise(data, var_identifier = "usubjid")

Arguments

data

Dataframe to be used as a basis for a synthetic dataset.

var_identifier

Vector of names of variables that are identifying variables (default = "usubjid")

Value

data.frame with values synthesised based on the original dataset


ISARICDataPlatform/CovidClinicalDataProcessor documentation built on March 22, 2022, 7:51 p.m.