-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
S4 development branch #7
Comments
Excellent work. Sorry I've been a bit remiss lately because of other projects. However, I just added the work you did into a new branch to the main rOpenGov/psData repo. It's called devPanel. If it's ok with you, I think we should focus development around this branch. |
Your listed as collaborator on the repo so you should be able to push and pull freely. Let me know if you have any issues. |
One more thing. I added the email address listed on your website to the .travis.yml. So you'll get updates of whether or not each commit passes. Let me know if you don't want this and we could just take it out. |
@christophergandrud I'm good with all suggestions, will continue development at end of March (writing up before that). |
Thanks. I'll have to take a closer look at this when I have some time. I'm Sorry that I didn't notice that you were using dataframeconstr earlier. You Jeff I'm good with all suggestions, will continue development at end of March Reply to this email directly or view it on GitHub. |
@jrnold don't worry about timing, I forked your repo just a few days ago :) It's likely that my hack of your class can be improved in many ways. Please feel free to point inadequacies, there are many, as I am new to S4 classes overall. |
Thanks. Again sorry for my delay. What I was saying is that you should look Jeff @jrnold https://github.com/jrnold don't worry about timing, I forked your It's likely that my hack of your class can be improved in many ways. Please Reply to this email directly or view it on |
@jrnold thanks for the details — I'll update |
Hi,
Here's a draft S4 class that creates a subclass of
data.frame
to implement functions for panel data and time series manipulation, or for any dyadic data.Contents
CountryID
by @christophergandrud (wraps aroundcountrycode
by @vincentarelbundock, with edits)MoveFront
fromDataCombine
by @christophergandrudclass-HomogList
andsubclass_homog_list
fromDataFrameConstr
by @jrnoldclass-psData
(hacked fromDataFrameConstr
by @jrnold)constrained_data_frame
fromDataFrameConstr
by @jrnolddebt.rda
(demo Reinhart and Rogoff data)get_data
and a bunch of get (download) functions for e.g. Polity 4 and QOG datapanel
with functions by @zmjonesutils
(with snippets by more authors)I'm sure many more people have written useful code for working with panel data, including for visualization purposes—the package should probably also look in that direction, and the draft includes a Reinhart and Rogoff plot.
Output
The object is of class
data.frame
:Now add panel design variables to quickly create a
psData
panel object:The object is now a
data.frame
to which the package can pass functions similar to thext
andts
commands in Stata. Country codes and basic date formats are automatically detected and usable for safe merges between multiple panel data.The text was updated successfully, but these errors were encountered: