Description Usage Arguments Value TODO Examples
This function replaces a piece of text with a table created using a dataframe.
1 | wdReplaceTextByTable(find, x, wdapp = .R2wd)
|
find |
A string. |
x |
A dataframe. |
Invisibly returns a pointer to new table object.
handle case if text is found multiple times. May a version createTable which can be passed a Range object from the search function is te better choice.s
1 2 3 4 5 6 | file <- system.file("inst/template.docx", package = "R2wdaddons")
wdGet2(file)
# add a table at placeholder
d <- mtcars[1:10, 1:6]
tbl <- wdReplaceTextByTable("[placeholder 3]", d)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.