I have a data frame with 10 columns: A:J and I want to have the output as a 
data frame with 11 columns, the value of 11th column is£º


for each row, if any column can be divided by 13, then the 11th column has a 
values of 1, otherwise, it has a value of 0. How to do that?


input is

a=matrix(1:10000,1000,10)

dimnames(a)=list(NULL,LETTERS[1:10])










        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to