Output to Word in formatted tables
Function for exporting MA output to nicely formatted Word tables.
wd(object, get = FALSE, new = FALSE, ...)
object |
Will take either an |
get |
Start up the Word program? TRUE if an instance of Word is not currently open. |
new |
Output data into a new Word document? TRUE or FALSE. |
... |
Additional arguments to be passed to R2wd functions. |
This function depends of the R2wd
package. See Christian Ritter (2010). R2wd: Write MS-Word documents from R. R
package version 1.3 for the details of the R2wd
package.
AC Del Re & William T. Hoyt
Maintainer: AC Del Re acdelre@gmail.com
Christian Ritter (2010). R2wd: Write MS-Word documents from R. R package version 1.3.
# Sample data id<-c(1:20) n<-c(10,20,13,22,28,12,12,36,19,12,36,75,33,121,37,14,40,16,14,20) r<-c(.68,.56,.23,.64,.49,-.04,.49,.33,.58,.18,-.11,.27,.26,.40,.49, .51,.40,.34,.42,.16) mod1<-c(1,2,3,4,1,2,8,7,5,3,9,7,5,4,3,2,3,5,7,1) dat<-data.frame(id,n,r,mod1) dat$var.r <- var_r(dat$r, dat$n) # MAc function to derive variance dat$z <- r_to_z(dat$r) # MAc function to convert to Fisher's z (z') dat$var.z <- var_z(dat$n) # MAc function for variance of z' dat$mods2 <- factor(rep(1:2, 10)) dat # Examples # install R2wd # install.packages('R2wd', dependencies = TRUE) # mareg fuction temp <- mareg(r~ mod1 + mods2, var = var.r, method = "REML", data = dat) # Export data to Word in formatted table ## Not run: wd(temp, get = TRUE, new = TRUE)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.