View source: R/create_formula.R
create_formula | R Documentation |
This function allows to create a formula from the columns of a data frame very quickly
create_formula(data, position = 1)
data |
a R data frame. |
position |
integer representing the position of the column in the data frame that we want to predict. The other columns are all considered as explanatory variables. |
a string that contains the formula. The formula is displayed with the following format: "Y ~ X1 + X2 + ..."
Simon CORDE
Link to the author's github package repository: https://github.com/Redcart/helda
data <- iris str(data) result <- create_formula(data = data, position = 4) result
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.