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

script-generator: R: restrict HRF file #1153

Closed
kwenzig opened this issue Mar 30, 2020 · 0 comments
Closed

script-generator: R: restrict HRF file #1153

kwenzig opened this issue Mar 30, 2020 · 0 comments
Assignees
Labels
App: Workspace Issues about the workspace app

Comments

@kwenzig
Copy link
Member

kwenzig commented Mar 30, 2020

Subject of the issue

Within the R-script HRF should be restricted to the same variables as in Stata.

Expected behaviour

R

### LOAD [H|P]HRF ###
hrf <- read.dta(file.path(path_in, "phrf.dta"), convert.factors=F)
hrf <- hrf[,c("hhnr","persnr","prgroup","yphrf")]

Actual behaviour

Stata

* * * HRF * * *
use /// 
hhnr persnr prgroup ///
yphrf ///
using "${MY_PATH_IN}phrf.dta"
save "${MY_PATH_OUT}hrf.dta", replace 
clear

R

### LOAD [H|P]HRF ###
hrf <- read.dta(file.path(path_in, "phrf.dta"), convert.factors=F)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
App: Workspace Issues about the workspace app
Projects
None yet
Development

No branches or pull requests

3 participants