如何使用这种格式/表示法指定一个列的范围,再加上一个超出范围的额外列?
# this specifies range of columns 2-5
is.na( dataset [,2:5])
# I would like to specify for columns 2-5 and column 12 within a single line like this
is.na( dataset [,2:5 & 12])
发布于 2022-10-11 13:57:46
使用c
连接:
is.na(dataset[, c(2:5, 12)])
https://stackoverflow.com/questions/74029349
复制相似问题