R/assign.list.R

Defines functions assign.list

Documented in assign.list

#' @export
assign.list<-function(assignx,term.labels){
  ass<-as.list(seq(term.labels))
  names(ass)<-term.labels
  indexset<-seq(along=assignx)
  lapply(ass,function(i,indexset,assignx)indexset[assignx==i],indexset,assignx)
}

Try the gam package in your browser

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

gam documentation built on Sept. 13, 2024, 1:06 a.m.