RDocumentation
Moon
Learn R
Search all packages and functions
⚠️
There's a newer version (0.2.21) of this package.
Take me there.
DataCombine (version 0.2.8.3)
Tools for Easily Combining and Cleaning Data Sets
Description
Tools for combining and cleaning data sets, particularly with grouped and time series data.
Copy Link
Copy
Link to current version
Version
Version
0.2.21
0.2.20
0.2.19
0.2.18
0.2.9
0.2.8.3
0.2.7.1
0.2.2
0.1.26
0.1.24
0.1.23
0.1.17
0.1.13
0.1.12
0.1.11
0.1.10
0.1.8
0.1.6
0.1.5.2
0.1.3
Down Chevron
Install
install.packages('DataCombine')
Monthly Downloads
2,077
Version
0.2.8.3
License
GPL (>= 3)
Maintainer
Christopher Gandrud
Last Published
January 31st, 2015
Functions in DataCombine (0.2.8.3)
Search functions
TimeExpand
Expands a data set so that it includes an observation for each time point in a sequence. Works with grouped data.
StartEnd
Find the starting and ending time points of a spell
MoveFront
Move variables to the front of a data frame.
SpreadDummy
Spread a dummy variable (1's and 0') over a specified time period and for specified groups
rmExcept
Remove all objects from a workspace except those specified by the user.
slideMA
Create a moving average for a period before or after each time point for a given variable
shiftMA
Internal function for slideMA
FindReplace
Replace multiple patterns found in a character string column of a data frame
VarDrop
Drop one or more variables from a data frame.
InsertRow
Inserts a new row into a data frame
DropNA
Drop rows from a data frame with missing values on a given variable(s).
shift
A function for creating lag and lead variables.
FillIn
A function for filling in missing values of a variable from one data frame with the values from another variable.
NaVar
Create new variable(s) indicating if there are missing values in other variable(s)
FillDown
Fills in missing (NA) values with the previous non-missing value
TimeFill
Creates a continuous Unit-Time-Dummy data frame from a data frame with Unit-Start-End times
slide
A function for creating lag and lead variables, including for time-series cross-sectional data.
CountSpell
Count spells, including for grouped data
dMerge
Merges 2 data frames and report/drop/keeps only duplicates.
grepl.sub
Subset a data frame if a specified pattern is found in a character string
PercChange
Calculate the percentage change from a specified lag, including withing group