The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.
panelWranglR is a simple package for wrangling panel data.
You can install the stable version of panelWranglR from CRAN with
install.packages("panelWranglR")
The latest version is also available from github using the devtools package
::install_github("JSzitas/panelWranglR") devtools
The goal of panelWranglR is to provide simple functions that take care of common panel data wrangling needs, such as lagging a panel, differencing a panel (including selections of variables from a panel), finding correlations/autocorrelations in a panel, and so on. For a full list of all of the available functionality, please refer to the documentation.
Let’s start by lagging a whole panel of data, using 5 lags.
# example data:
<- matrix(rnorm(800000),8000,100)
X <- seq(1:4000)
tim <- rep(c("AT"), length = 4000)
geo_AT <- rep(c("NO"), length = 4000)
geo_NO <- cbind(tim,geo_NO)
both_vec_1 <- cbind(tim,geo_AT)
both_vec_2 <- rbind(both_vec_1,both_vec_2)
both <- cbind(both,X)
X colnames(X) <- c("time", "geo", paste("V", 1:100, sep = ""))
library(panelWranglR)
panel_lag( data = X,
cross.section = "geo",
time.variable = "time",
lags = 5 )
Or maybe we want to turn the cross section variable into several dummy variables:
panel_dummify( data = X,
cross.section = "geo" )
We can do that for the time variable too (though it is not recommended with many time ‘levels’!)
Further functionality follows the same general syntax and usage (and documentation hopefully clears up any misunderstandings.)
If you would like to contribute a pull request, please do contribute! All contributions will be considered for acceptance, provided they are justifiable and the code is reasonable, regardless of anything related to the person submitting the pull request. Please keep things civil - there is no need for negativity. Also, please do refrain from adding unnecessary dependencies (Ex: pipe) to the package (such pull requests as would add an unnecessary dependency will be denied/ suspended until the code can be made dependency free).
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.