R/02-setAs.R

setAs("taxRateTable","data.frame",function(from){
  level <- from@level;
  start <- from@start;
  end <- from@end;
  taxRate <- from@taxRate;
  deductAmt <- from@deductAmt;
  res <- data.frame(level,start,end,taxRate,deductAmt,stringsAsFactors = FALSE);
  return(res)
})
takewiki/ptcal documentation built on May 20, 2019, 5:44 p.m.