View source: R/prune_03-B_divide.R
prune_divide | R Documentation |
Divide 2 variables using pruned data.
prune_divide(data, new_var, num_var, den_var, prune_var = "prune_id")
data |
Dataframe. |
new_var |
Name of new variable with the result of the computation. |
num_var |
Name of numerator variable. |
den_var |
Name of denominator variable. |
prune_var |
The name of the column with the prune id. Default is "prune_id". |
Divide 2 variables using pruned data. When the row has a prune id of
NA
, the computation returns NA
.
Data.frame.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.