R语言“不可用” /缺少值anyMissing()函数-中英文对照帮助文档
By MicroRbt Martinez PhD
R语言函数名:anyMissing()
R语言函数功能:“不可用” /缺少值
来自资源库:基础库(R语言自带)
anyMissing()函数所属R语言包:所在R包具体名称、包功能的中英文双语描述见正文后面'--所在R语言包信息--'部分。
描述-----Description-----
NA is a logical constant of length 1 which contains a missing value indicator. NA can be coerced to any other vector type except raw. There are also constants NA_integer_, NA_real_, NA_complex_ and NA_character_ of the other atomic vector types which support missing values: all of these are reserved words in the R language.
NA是长度为1的逻辑常数,其中包含缺失值指示符。 NA可以强制为除raw外的任何其他向量类型。还有其他原子向量类型的常量NA_integer_,NA_real_,NA_complex_和NA_character_支持缺失值:所有这些都是R语言中的保留字。
The generic function is.na indicates which elements are missing.
通用函数is.nacc指示缺少哪些元素。
The generic function is.na<- sets elements to NA.
通用函数is.na<-将元素设置为NA。
The generic function anyNA implements any(is.na(x)) in a possibly faster way (especially for atomic vectors).
泛型函数anyNA以可能更快的方式实现any(is.na(x))(尤其是对于原子向量)。
使用方法-----Usage-----
NA
is.na(x)
anyNA(x, recursive = FALSE)
## S3 method for class 'data.frame' S3 method for class 'data.frame'
is.na(x)
is.na(x) <- value
参数-----Arguments-----
参数x介绍: an R object to be tested: the default method for is.na and anyNA handle atomic vectors, lists, pairlists, and NULL.
一个要测试的R对象:is.na和anyNA的默认方法处理原子向量,列表,成对列表和NULL。
参数recursive介绍: logical: should anyNA be applied recursively to lists and pairlists?
逻辑:anyNA是否应递归应用于列表和成对列表?
参数value介绍: a suitable index vector for use with x.
与x一起使用的合适的索引向量。
详情-----Details-----
The NA of character type is distinct from the string "NA". Programmers who need to specify an explicit missing string should use NA_character_ (rather than "NA") or set elements to NA using is.na<-.
字符类型的NAc与字符串"NA"不同。需要指定显式丢失字符串的程序员应使用NA_cha
-----未完,待续-----,↓↓↓展开剩余72%↓↓↓
|