View source: R/Numeric2Binary.R
Numeric2Binary | R Documentation |
Converts a numeric variable into a binary one using a cut point
Numeric2Binary(y, name= "MyVar", cut = NULL)
y |
Vector containing the numeric values |
name |
Name of the variable |
cut |
Cut point to cut the values of the variable. If is NULL the median is used. |
Converts a numeric variable into a binary one using a cut point. If the cut is NULL the median is used.
A binary Variable
Jose Luis Vicente-Villardon
Dataframe2BinaryMatrix
y=c(1, 1.2, 3.2, 2.4, 1.7, 2.2, 2.7, 3.1)
Numeric2Binary(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.