Suite of Functions to Flexibly Read Data from Files
Simple and robust way to create full-path file names.
Classify file types readable by standard R I/O functions.
Change column name in different form to desired form.
Convert a matrix or dataframe to fixed-width for nice file output
Find the number of columns (lines) in a file.
Find the number of rows (lines) in a file.
Search for a directory to add to the path so that a file exists.
Find which column in a dataframe contains a specified set of values.
returns a dataframe if 'unknown.data' can in anyway relate to such:
returns a vector if 'unknown.data' can in anyway relate to such:
Determine the delimiter for a text data file.
Get the file extension from a file-name.
Test whether a file exists in a target directory, or alternative list ...
Read 'n' lines (ignoring comments and header) from a file.
Function to collect arguments when running R from the command line
Internal reader Functions
Suite of Functions to Flexibly Read Data from Files
Flexibly load from a text or binary file, accepts multiple file format...
Remove the file extension from a file-name.
Shift the first column of a dataframe to rownames() if appropriate.
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.