2017-08-19 32 views

回答

0

我们可以通过与apply行循环,得到对应于该0和paste

data.frame(col1 = apply(df1, 1, FUN = function(x) toString(names(x)[x==0]))) 
相关问题