Skip to content
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

Panel Long Attendance Roster to Wide #1

Open
FanWangEcon opened this issue Apr 1, 2020 · 0 comments
Open

Panel Long Attendance Roster to Wide #1

FanWangEcon opened this issue Apr 1, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@FanWangEcon
Copy link
Owner

Following R4Econ, generate function for Panel Long Attendance Roster to Wide.

There are $N$ students in class, but only a subset of them attend class each day. If student $id_i$ is in class on day $Q$, the teacher records on a sheet the date and the student ID. So if the student has been in class 10 times, the teacher has ten rows of recorded data for the student with two columns: column one is the student ID, and column two is the date on which the student was in class. Suppose there were 50 students, who on average attended exactly 10 classes each during the semester, this means we have $10 \cdot 50$ rows of data, with differing numbers of rows for each student.

Now we want to generate a new dataframe, where each row is a date, and each column is a student. The values in the new dataframe shows, at the $Q^{th}$ day, how many classes student $i$ has attended so far.

@FanWangEcon FanWangEcon added the enhancement New feature or request label Apr 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant