search for: elsq2wbl

Displaying 2 results from an estimated 2 matches for "elsq2wbl".

2017 Aug 10
3
Creating New Variable Using Ifelse
...my new variable. My many attempts at creating a nested ifelse statement that would pass the NAs through properly have not been successful. Any help is greatly appreciated. Here is a MRE:? library(RCurl) data <- getURL("https://raw.githubusercontent.com/cbenjamin1821/careertech-ed/master/elsq2wbl.csv") elsq2wbl <- read.csv(text = data) ##Recoding Negative Responses to NA elsq2wbl [elsq2wbl[, "EVERRELJOB"] < -3, "EVERRELJOB"] <- NA elsq2wbl [elsq2wbl[, "PSWBL"] < -2, "PSWBL"] <- NA #Labeling categorical variable levels elsq2wbl$EV...
2017 Aug 10
0
Creating New Variable Using Ifelse
...reating a nested ifelse statement that would pass the NAs > through properly have not been successful. Any help is greatly appreciated. > > Here is a MRE:? > > library(RCurl) > data <- > getURL("https://raw.githubusercontent.com/cbenjamin1821/careertech- > ed/master/elsq2wbl.csv") Did not work for me probably due to some restriction of data access. > elsq2wbl <- read.csv(text = data) > > ##Recoding Negative Responses to NA > elsq2wbl [elsq2wbl[, "EVERRELJOB"] < -3, "EVERRELJOB"] <- NA > elsq2wbl [elsq2wbl[, "PSWBL...