ds.dummies: Create dummy variables

View source: R/ds.dummies.R

ds.dummiesR Documentation

Create dummy variables

Description

Create dummy variables for factor columns on server data frame

Usage

ds.dummies(x, name = NULL, prob_adjust = FALSE, datasources = NULL)

Arguments

x

character Name of the data frame on the study server

name

character (default NULL) Overwrites the data frame if NULL, otherwise the new data frame with dummies is asigned to a new variable

prob_adjust

bool (default FALSE) Scale the dummy variables dividing them by the square root of their probability (n/n_total)

datasources

a list of DSConnection-class (default NULL) objects obtained after login

Value

This function does not have an output. It creates (or overwrites) a data frame on the study server.


isglobal-brge/dsMLClient documentation built on March 14, 2023, 1:59 p.m.