View source: R/01-vec_logical.R
value_if_na | R Documentation |
如果向量值为NA,则替代为相应的replace_value
value_if_na(x, replace_value)
x |
定义一个原生的向量,可以是数值或签字串 |
replace_value |
定义一个替代值 |
返回一个向量
value_if_na(c(1,2,3,NA,NA,4),5);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.