R/estpart.R

Defines functions estpart

estpart=function(df,estimate =c("median","mean","shorth")){
  arr = df2array(df,"value")
  na = dimnames(arr)
  arr = array2Larray(arr)
  switch(estimate,
         median = median,
         mean = mean,
         shorth = shorth)
  
  mains = apply(arr,1,estimate,na.rm=TRUE)
  names(mains) = na[[1]]
  res = main2fit(mains=mains,df=df)
  res
}

Try the coRNAi package in your browser

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

coRNAi documentation built on Nov. 17, 2017, 11:14 a.m.