Code
set_n_miss(vec, -1)
Condition
Error in `set_n_miss()`:
! `x` must be greater than 0
`x` is -1
Code
set_n_miss(vec, "a")
Condition
Error in `check_is_integer()`:
! Can't convert `x` <character> to <integer>.
Code
set_n_miss(vec, 1.5)
Condition
Error in `check_is_integer()`:
! Can't convert from `x` <double> to <integer> due to loss of precision.
* Locations: 1
Code
set_n_miss(vec, c(1.5, 2))
Condition
Error in `set_n_miss()`:
! `x` must be length 1
`x` is 1.5 and 2, and `x` has length: 2
Code
set_prop_miss(vec, -1)
Condition
Error in `set_prop_miss()`:
! `prop` must be between 0 and 1
`prop` is -1
Code
set_prop_miss(vec, "a")
Condition
Error in `set_prop_miss()`:
! `prop` must be between 0 and 1
`prop` is a
Code
set_prop_miss(vec, 1.5)
Condition
Error in `set_prop_miss()`:
! `prop` must be between 0 and 1
`prop` is 1.5
Code
set_prop_miss(vec, c(1.5, 2))
Condition
Error in `set_prop_miss()`:
! `x` must be length 1
`x` is 1.5 and 2, and `x` has length: 2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.