convert.data | R Documentation |
This set of functions converts given data by the selected column with some specific purposes. The details are below.
Dash.Convert.NA(data, variable)
Dash.Convert.Zero(data, variable)
Zero.Convert.NA(data, variable)
Null.Convert.NA(data, variable)
NA.Convert.Zero(data, variable)
Negative.Convert.NA(data, variable)
NaN.Convert.Zero(data, variable)
NaN.Convert.NA(data, variable)
data |
data.frame. Data as in data.frame class. |
variable |
character. A single string which is a column name in the data. |
All conversions are in character. See below.
Dash.Convert.NA: Converts "-" into NA.
Dash.Convert.Zero: Converts "-" into "0".
Zero.Convert.NA: Converts "0" into NA.
Null.Convert.NA: Converts "null" into NA.
NA.Convert.Zero: Converts NA into "0".
Negative.Convert.NA: Converts negative value into NA.
NaN.Convert.Zero: Converts NaN into "0".
NaN.Convert.NA: Converts NaN into NA.
A data frame.
## Not run:
Dash.Convert.NA(data, "variable.name") ## Do not run.
Dash.Convert.Zero(data, "variable.name") ## Do not run.
Zero.Convert.NA(data, "variable.name") ## Do not run.
Null.Convert.NA(data, "variable.name") ## Do not run.
NA.Convert.Zero(data, "variable.name") ## Do not run.
Negative.Convert.NA(data, "variable.name") ## Do not run.
NaN.Convert.Zero(data, "variable.name") ## Do not run.
NaN.Convert.NA(data, "variable.name") ## Do not run.
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.