{"action":"created","issue":{"url":"https://api.github.com/repos/ozanj/rclass/issues/13","repository_url":"https://api.github.com/repos/ozanj/rclass","labels_url":"https://api.github.com/repos/ozanj/rclass/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/ozanj/rclass/issues/13/comments","events_url":"https://api.github.com/repos/ozanj/rclass/issues/13/events","html_url":"https://github.com/ozanj/rclass/issues/13","id":377726816,"node_id":"MDU6SXNzdWUzNzc3MjY4MTY=","number":13,"title":"read in ccd and pss data with variable labels and value labels","user":{"login":"ozanj","id":30178653,"node_id":"MDQ6VXNlcjMwMTc4NjUz","avatar_url":"https://avatars3.githubusercontent.com/u/30178653?v=4","gravatar_id":"","url":"https://api.github.com/users/ozanj","html_url":"https://github.com/ozanj","followers_url":"https://api.github.com/users/ozanj/followers","following_url":"https://api.github.com/users/ozanj/following{/other_user}","gists_url":"https://api.github.com/users/ozanj/gists{/gist_id}","starred_url":"https://api.github.com/users/ozanj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ozanj/subscriptions","organizations_url":"https://api.github.com/users/ozanj/orgs","repos_url":"https://api.github.com/users/ozanj/repos","events_url":"https://api.github.com/users/ozanj/events{/privacy}","received_events_url":"https://api.github.com/users/ozanj/received_events","type":"User","site_admin":false},"labels":[{"id":1006795380,"node_id":"MDU6TGFiZWwxMDA2Nzk1Mzgw","url":"https://api.github.com/repos/ozanj/rclass/labels/help%20wanted","name":"help wanted","color":"008672","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-06T07:45:45Z","updated_at":"2018-11-06T20:51:45Z","closed_at":null,"author_association":"OWNER","body":"@cyouh95 \r\n\r\nHi Crystal,\r\n\r\nI have a data request for you for my R class. sorry to add to your already very full plate!\r\n\r\nI'm beginning to create a problem set for my R class about merging data sources.\r\n\r\nThe problem set will use events_data.csv from C:\\Users\\ozanj\\Dropbox\\recruiting-m1\\analysis\\data but will only keep variables about the events.\r\n\r\nThen I want students to merge in public school data from CCD and private school data from PSS. But I want them to merge in R-versions of the datasets found on the NCES website:\r\n\r\nfor public schools:\r\nhttps://nces.ed.gov/ccd/pubschuniv.asp\r\n\r\nfor private schools:\r\nhttps://nces.ed.gov/surveys/pss/pssdata.asp\r\n\r\nThe data can be downloaded in csv format, SAS datasets, or SPSS datasets. I used the haven package to read in the SAS version of one of the 2015-16 CCD datasets. that worked fine, but value labels were not retained so students would have no idea what the different values on variables mean. There is a separate SAS file (and SPSS file) that creates value labels. I'm not sure how to run the SAS/SPSS code from R, but I think it is possible. basically, I want variables with value labels to have class=labelled and to have both variable labels and value labels.\r\n\r\nCan you create .Rdata files that meet these specifications?\r\n\r\nI want this for all 2015-16 school-level CCD files and for 2015-16 PSS file.\r\n\r\nI may ask you to do this for some small snippet of ACS data too. students really don't like working with variables that don't have variable labels and most of our data isn't labelled. but don't do anything with ACS data yet.\r\n\r\nsorry for the extra request, but need help w/ this problem set so that I can get to writing the recruiting paper.\r\n\r\nbest wishes. ozan."},"comment":{"url":"https://api.github.com/repos/ozanj/rclass/issues/comments/436404036","html_url":"https://github.com/ozanj/rclass/issues/13#issuecomment-436404036","issue_url":"https://api.github.com/repos/ozanj/rclass/issues/13","id":436404036,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjQwNDAzNg==","user":{"login":"ozanj","id":30178653,"node_id":"MDQ6VXNlcjMwMTc4NjUz","avatar_url":"https://avatars3.githubusercontent.com/u/30178653?v=4","gravatar_id":"","url":"https://api.github.com/users/ozanj","html_url":"https://github.com/ozanj","followers_url":"https://api.github.com/users/ozanj/followers","following_url":"https://api.github.com/users/ozanj/following{/other_user}","gists_url":"https://api.github.com/users/ozanj/gists{/gist_id}","starred_url":"https://api.github.com/users/ozanj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ozanj/subscriptions","organizations_url":"https://api.github.com/users/ozanj/orgs","repos_url":"https://api.github.com/users/ozanj/repos","events_url":"https://api.github.com/users/ozanj/events{/privacy}","received_events_url":"https://api.github.com/users/ozanj/received_events","type":"User","site_admin":false},"created_at":"2018-11-06T20:51:45Z","updated_at":"2018-11-06T20:51:45Z","author_association":"OWNER","body":"@cyouh95 \r\n\r\nsecond question. I was looking at the data frames ccd and pss.\r\n\r\nmost of the categorical variables in pss have the \"labelled\" class. by contrast, most of the categorical variables in the data frame ccd have character type/class. what is the reason for this?\r\n\r\nwould like the two data sources to be broadly consistent on this front. what is your recommendation for how/what to change?"}}
{"actor":{"display_login":"ozanj"}}