Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- df=matrix(ncol=10,nrow=50,c(1:500))
- df=as.data.frame(df)
- df$combind=paste(df[,1],df[,2],df[,3],df[,4],df[,5])
- grepl(pattern = 10,x = df$combind)
- df$rslt=grepl(pattern = 10,x = df$combind)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement