https://github.com/cran/DataCombine
Tip revision: 1e9c924e9ad248ba7bc7c825cb031b8aadc95ff8 authored by Christopher Gandrud on 04 June 2013, 08:15:29 UTC
version 0.1.5.2
version 0.1.5.2
Tip revision: 1e9c924
README.md
DataCombine
======
### Christopher Gandrud
### Version 0.1.5.2
### Note: **DataCombine** is in beta. Please report any bugs at: <https://github.com/christophergandrud/DataCombine/issues>.
---
**DataCombine** is intended for making combining data sets--especially time-series cross-section data--easier. The package is in the very very early stages of development. It includes two functions:
- `FillIn`: a function for filling in missing values of a variable from one data frame with the values from another variable.
- `MoveFront`: moves variables to the front of a data frame. This can be useful if you have a data frame with many variables and want to move a variable or variables to the front.
- `DropNA`: a function that drops rows from a data frame when they have missing (NA) values on a given variable(s).
- `slide`: a function for creating lag and lead variables, including for time-series cross-sectional data. The slid variable are added to the original data frame.
- `shift`: a function for creating lag and lead variables, including for time-series cross-sectional data. The shifted variable is returned to a new vector. This function is largely based on TszKin Julian's `shift` function: <http://ctszkin.com/2012/03/11/generating-a-laglead-variables/>.
---
## Updates
I will continue to add to the package as I build data sets and run across other pesky tasks I do repeatedly that would be simpler if they were a function.
---
## Installation
**DataCombine** is on [CRAN](http://cran.r-project.org/).
You can also install the most recent stable version with `install_github` from the [devtools](https://github.com/hadley/devtools):
```
devtools::install_github("DataCombine", "christophergandrud")
```