Code
importance_weights(-1)
Condition
Error in `importance_weights()`:
! `x` can't contain negative weights.
Code
new_importance_weights(1L)
Condition
Error in `new_importance_weights()`:
! `x` must be a double vector.
Code
vec_cast(x, integer())
Condition
Error:
! Can't convert `x` <importance_weights> to <integer>.
Code
as.integer(x)
Condition
Error in `as.integer()`:
! Can't convert `x` <importance_weights> to <integer>.
Code
frequency_weights(1.5)
Condition
Error in `frequency_weights()`:
! Can't convert from `x` <double> to <integer> due to loss of precision.
* Locations: 1
Code
frequency_weights(-1L)
Condition
Error in `frequency_weights()`:
! `x` can't contain negative weights.
Code
new_frequency_weights(1)
Condition
Error in `new_frequency_weights()`:
! `x` must be an integer vector.
x
must be integer or doubleCode
new_case_weights("x", class = "subclass")
Condition
Error in `new_case_weights()`:
! `x` must be an integer or double vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.