R/weightDf.R

Defines functions weightDf

Documented in weightDf

weightDf = function(df,exclude=c("double","controlN2","controlP2","controlP1N1","controlN1")){
  #if("weight"%in%colnames(df))
   # weights = df$weight else
  weights = rep(1,nrow(df))
  
  weights[df$Type%in%exclude] = 0
  df$weight = weights
  df
}
  

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.