KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
The variables in my database are coded as "Yes" and "No" but I would like to have as "1" and "2". I tried to create a new variable using ifelse but when I list 'ed it, it didn't work, as follows: CA <- ifelse((CANCER == "Yes"),1 ifelse(( CANCER == "No"),2 ))) list(CA) [[1]] NULL
Tags (comma-separated)
Save Edits
Cancel