Code
xx <- add_intercept_column(x)
Condition
Warning:
`data` already has a column named "(Intercept)".
i Returning `data` unchanged.
Code
add_intercept_column(mtcars, name = c("x", "y"))
Condition
Error in `add_intercept_column()`:
! `name` must be a valid name, not a character vector.
Code
add_intercept_column(mtcars, name = 1)
Condition
Error in `add_intercept_column()`:
! `name` must be a valid name, not the number 1.
Code
add_intercept_column(1)
Condition
Error in `add_intercept_column()`:
! `data` must be a data frame or a matrix, not the number 1.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.