R/gjamSpec2Trait.r

Defines functions gjamSpec2Trait

Documented in gjamSpec2Trait

gjamSpec2Trait <- function(pbys, sbyt, tTypes){
  
  # plotBySpec  - n by S numeric matrix
  # specByTrait - S by M data.frame
  # traitTypes  - data types for traits
  # FC can be factors that will be categorical
  
  if(!identical(colnames(pbys),rownames(sbyt))){
    stop( 'colnames(pbys) must match rownames(sbyt)' )
  }
  if(length(tTypes) != ncol(sbyt)){
    stop( 'length(tTypes) must equal ncol(sbyt)' )
  }
  
  .spec2Trait(pbys, sbyt, tTypes)
}
                

Try the gjam package in your browser

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

gjam documentation built on May 24, 2022, 1:06 a.m.