textreadr (version 0.5.1)

read_docx: Read in .docx Content

Description

Read in the content from a .docx file.

Usage

read_docx(file, skip = 0, remove.empty = TRUE, trim = TRUE, ...)

Arguments

file
The path to the .docx file.
skip
The number of lines to skip.
remove.empty
logical. If TRUE empty elements in the vector are removed.
trim
logical. If TRUE the leading/training white space is reoved.
ignored.

Value

Returns a character vector.

Examples

Run this code
## Not run: ------------------------------------
# url <- "https://github.com/trinker/textreadr/raw/master/inst/docs/Yasmine_Interview_Transcript.docx"
# file <- download(url)
# (txt <- read_docx(file))
## ---------------------------------------------

Run the code above in your browser using DataLab