dich: dich

Description Usage Arguments Value

View source: R/util.R

Description

splits a variable into two groups

Usage

1
dich(variables,data=NULL,cut=NULL,group1=NULL,group2=NULL)

Arguments

variables

variables to be dichotomized

data

A data.frame

cut

An optional cut point dividing factor into two groups.

group1

An optional vector of levels of factor defining group 1.

group2

An optional vector of levels of factor defining group 2.

Value

a data.frame containing the variables, recoded into two groups.


Deducer documentation built on May 2, 2019, 8:35 a.m.

Related to dich in Deducer...