R/matlist.R

Defines functions matlist

Documented in matlist

matlist <-
function(x){  
mylist<-list()
 for (i in 1:nrow(x)){
# mylist[[i]]<-LETTERS[1:ncol(x)] [  as.matrix(x)[i,]!=Inf  ]
 mylist[[i]]<-colnames(x)[  as.matrix(x)[i,]!=Inf  ]
 names(mylist)[i]<-rownames(as.matrix(x))[i]
}
;return(mylist)}

Try the OSDR package in your browser

Any scripts or data that you put into this service are public.

OSDR documentation built on March 18, 2022, 7:33 p.m.