Movatterモバイル変換


[0]ホーム

URL:


Skip to contents

antiword

Project Status: Active – The project has reached a stable, usable state and is being actively developed.CRAN_Status_BadgeCRAN RStudio mirror downloads

Extract Text from Microsoft Word Documents

Wraps theAntiWord utility to extract text from Microsoft Word documents. The utility only supports the olddoc format, not the new xml baseddocx format. Use the ‘xml2’ package to read the latter.

Installation

Install the package directly from CRAN:

install.packages("antiword")

Example Usage

The function has only a single functionantiword(). It takes either a local file path or a URL to a word document:

library(antiword)text<-antiword("https://jeroen.github.io/files/UDHR-english.doc")cat(text)
Universal Declaration of Human Rights                            Plain English VersionAll people everywhere have the same human rights, which no one can takeaway. This is the basis of freedom, justice and peace in the world.This Declaration affirms the dignity and worth of all people, and the equalrights of women and men. The rights described here are the common standardfor all people everywhere.Every person and nation is asked to support the understanding and respectfor these rights, and to take steps to make sure that they are recognisedand observed everywhere, for all people.

Links

License

Citation

Developers

R-universe

  • antiword status badge


[8]ページ先頭

©2009-2025 Movatter.jp