create_dataset: Create a dataset

Description Usage Arguments

View source: R/create_dataset.R

Description

To be transferred into a separate package for Alan.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
create_dataset(
  data,
  varsX = "",
  varY = "",
  config_code = NULL,
  rename_vars = c(),
  remove_vars = c(),
  subset = "all",
  ylevel = NULL,
  primary_key = NULL,
  verbose = F
)

Arguments

data

Dataframe with X and Y variables.

varsX

Vector of variables to use as predictors.

varY

Variable name to use as the outcome.

config_code

R code to create varsX and varY, which define the variables to use.

rename_vars

named vector, where names are the original names and values are the new names.

remove_vars

vector of strings for variables to remove from varsX

subset

Code to further subset the data.

ylevel

Target level of y if y is a factor variable.

primary_key

Id variable, if any.

verbose

If TRUE display extra output.


ck37r documentation built on Feb. 6, 2020, 5:09 p.m.

Related to create_dataset in ck37r...