2016-03-10 48 views

回答

0

你是指特定的行還是所有的行?如果前者使用:

A <- A[grepl('^z$', unlist(A[i,]))] 

其中我是字符'z'可能位於的行。如果後者能夠在所有的i上使用for循環。

相關問題