📌  相关文章
📜  r 返回数据框中具有 NA 的行的索引 - R 编程语言代码示例

📅  最后修改于: 2022-03-11 14:52:01.143000             🧑  作者: Mango

代码示例1
# Basic syntax:
which(is.na(your_dataframe), arr.ind=TRUE)
# Where:
#    - which returns the dataframe row indices for rows that contain
#        a logical of TRUE
#    - is.na processes the dataframe and converts all values to TRUE or 
#        FALSE based on whether they are NA or not