title: Fine tuning table output of function 'univariateTable'
body: <p>I've found the function <code>univariateTable</code> to be extremely helpful to handling larger data for a nice, clean table output. But there are a couple of things that I still need to do manually after the table is exported in <code>csv</code>, and I would rather do it in R to automate the process and avoid human errors. </p>
  
  <p>Here is the example code with the table output that I then export as <code>csv</code></p>
  
  <pre><code>value&lt;-cbind(c(rnorm(103.251,503.24,90),rnorm(103.251,823.24,120)))
  genotype&lt;-cbind(c(rep("A",100),rep("B",100)))
  gender&lt;-rep(c("M","F","F","F"),50)
  df&lt;-cbind(value,genotype,gender)
  df&lt;-as.data.frame(df)
  colnames(df)&lt;-c("value","genotype","gender")
  df$value&lt;-as.numeric(as.character(df$value))
  library(Publish)
  summary(univariateTable(gender ~ Q(value) + genotype, data=df))
  </code></pre>
  
  <p>The two problems I have are these:</p>
  
  <ol>
  <li><p>Is there a way to round the numbers in the table in a way similar to this: <code>round(99.73)</code></p></li>
  <li><p>Is there a way to substitute <code>,</code> with <code>-</code> in the interquartile range output in a way similar to this: <code>gsub(", ","-","[503.7, 793.3]")</code> , and instead of <code>median [iqr]</code> have it put out <code>median [IQR]</code></p></li>
  </ol>
  
  <p>Again, I do these manually after exporting the tables, but for larger tables it is much more convenient to automate the process.</p>