| calc_prob_cond | R Documentation | 
Calculate probabilities conditional on other variables.
calc_prob_cond(data, condition.names, var.name, prob.name = "prob")
| data | Dataframe. | 
| condition.names | Character vector of condition variables. | 
| var.name | Name of variable to compute probabilities. | 
| prob.name | Name of column holding the probabilities' values. | 
Calculate the empirical distribution of a variable by different conditions/groups.
Dataframe with grouped variable var.name and probabilities in
prob.nam
calc_prob
calc_prob_cond(airquality, condition.names = "Month",
 var.name = "Temp", prob.name = "prob")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.