ODECdmorales/readPos: Functions made to work with files delimited by positions

Some old softwares uses a set of pre-fixed positions to construct the variables to work. Actually we don't have usefull packages in R to work with this type of files (eg: .dat or .asc non associated with xml). This package contains two main functions that will be help you to construct the variables in the same way that the original definition file did. Each variable in original definition file will be traslated into a column that contains the information of the positions defined in the .csv document that we use as template. The csv must be the following structure, otherwise this functions will not work: Four first columns (you can add more at the rigth of these four, they will be not used but can help you to add comments or somewhat) - variables: that column contains the name of the variables to work, the name that you write there will be the colname in R data frame. - type: specifies the type of the variable, allows "character", "single", "multiple" or "numeric". - start: positions that starts the range of data that will definie the variable. - finish: positions that finish the range of data that will definie the variable.

Getting started

Package details

AuthorDavid Morales
MaintainerDavid Morales <dmorales@odec.es>
LicenseGPL-2
Version0.1.0
Package repositoryView on GitHub
Installation Install the latest version of this package by entering the following in R:
install.packages("remotes")
remotes::install_github("ODECdmorales/readPos")
ODECdmorales/readPos documentation built on Oct. 30, 2019, 10:19 p.m.