patstatr.save.rds: Reads PatStat .txt files and saves them to .rds (also...

Description Usage Arguments Value

Description

Reads PatStat .txt files and saves them to .rds (also optional in batches)

Usage

1
2
3
patstatr.save.rds(file, dir = file.path(getwd(), "patstat-txt"),
  dir.rds = file.path(getwd(), "patstat-rds"), batch.lines = 0,
  file.lines = 0)

Arguments

file

File name (.txt is expected)

dir

Directory where the file is. Default is in working directory "patstat-txt"

dir.rds

Where to save. Default is in working directory "patstat-rds"

batch.lines

How many lines is to read in one batch (10^7 is recomended). The default is 0, meanning that reading will be done in one batch as a single file.

file.lines

Length of the .tsv file. The default is 0. If it is not changed and batch.lines is specified then it will try to calculate it with grep.

Value

Saved file(s) path.


stasvlasov/patstatr documentation built on June 5, 2019, 10:21 a.m.