R: which(查询位置)、%in% (是否存在)、ifelse(判断是否):

NoSuchKey