Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

loadtext

load a text file


Description

(Down)Load a text file (and extract it if it is in a zip file).

Usage

loadtext(file = file.choose(), dir = "~/", collapse = TRUE)

Arguments

file

The path or URL of the text file.

dir

The (temporary) directory, where the file is downloaded. The file is deleted at the end of this function.

collapse

Indicates whether or not lines of each documents should collapse together or not.

Value

The text contained in the dowloaded file.

See Also

Examples

## Not run: 
text = loadtext ("http://mattmahoney.net/dc/text8.zip")

## End(Not run)

fdm2id

Data Mining and R Programming for Beginners

v0.9.5
GPL-3
Authors
Alexandre Blansché [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.