reader: Suite of Functions to Flexibly Read Data from Files

Share:

A set of functions to simplify reading data from files. The main function, reader(), should read most common R datafile types without needing any parameters except the filename. Other functions provide simple ways of handling file paths and extensions, and automatically detecting file format and structure.

Author
Nicholas Cooper
Date of publication
2015-04-09 15:31:22
Maintainer
Nicholas Cooper <nick.cooper@cimr.cam.ac.uk>
License
GPL (>= 2)
Version
1.0.5

View on CRAN

Man pages

cat.path
Simple and robust way to create full-path file names.
classify.ext
Classify file types readable by standard R I/O functions.
column.salvage
Change column name in different form to desired form.
conv.fixed.width
Convert a matrix or dataframe to fixed-width for nice file...
file.ncol
Find the number of columns (lines) in a file.
file.nrow
Find the number of rows (lines) in a file.
find.file
Search for a directory to add to the path so that a file...
find.id.col
Find which column in a dataframe contains a specified set of...
force.frame
returns a dataframe if 'unknown.data' can in anyway relate to...
force.vec
returns a vector if 'unknown.data' can in anyway relate to...
get.delim
Determine the delimiter for a text data file.
get.ext
Get the file extension from a file-name.
is.file
Test whether a file exists in a target directory, or...
n.readLines
Read 'n' lines (ignoring comments and header) from a file.
parse.args
Function to collect arguments when running R from the command...
reader
Flexibly load from a text or binary file, accepts multiple...
reader-internal
Internal reader Functions
reader-package
Suite of Functions to Flexibly Read Data from Files
rmv.ext
Remove the file extension from a file-name.
shift.rownames
Shift the first column of a dataframe to rownames() if...

Files in this package

reader
reader/NAMESPACE
reader/R
reader/R/reader.R
reader/MD5
reader/DESCRIPTION
reader/man
reader/man/cat.path.Rd
reader/man/parse.args.Rd
reader/man/file.ncol.Rd
reader/man/find.file.Rd
reader/man/shift.rownames.Rd
reader/man/reader-internal.Rd
reader/man/find.id.col.Rd
reader/man/classify.ext.Rd
reader/man/force.vec.Rd
reader/man/get.delim.Rd
reader/man/force.frame.Rd
reader/man/reader-package.Rd
reader/man/conv.fixed.width.Rd
reader/man/reader.Rd
reader/man/n.readLines.Rd
reader/man/column.salvage.Rd
reader/man/is.file.Rd
reader/man/file.nrow.Rd
reader/man/get.ext.Rd
reader/man/rmv.ext.Rd