设为首页收藏本站获取积分奖励

R语言中文网

 找回密码
 立即注册
查看: 725|回复: 0

R语言“不可用” /缺少值anyMissing()函数-中英文对照帮助文档

[复制链接]
发表于 2020-8-20 22:45:24 | 显示全部楼层 |阅读模式
        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%↓↓↓
购买主题 前行需要您的支持,请赞助作者 【15 金钱】 就能浏览全部100%内容啦!(本贴一次赞助、永久可读)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Archiver|R语言中文网    

GMT+8, 2024-5-21 05:54 , Processed in 0.024719 second(s), 23 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表