Closed mworni closed 12 years ago
you are not using the subset, please see the recode script i created, which uses subsetting
On Wed, Jun 13, 2012 at 11:30 AM, mworni < reply@reply.github.com
wrote:
BMI_RECIP_clean <- recode(BMI_RECIP, " BMI_RECIP[BMI_RECIP>100] = NA " ) Error in recode.default(BMI_RECIP, " BMI_RECIP[BMI_RECIP>100] = NA ") : object '.data' not found
Reply to this email directly or view it on GitHub: https://github.com/rpietro/airwayDehiscence/issues/8
we don't understand...
like this:
BMI_RECIP_clean <- recode(BMI_RECIP, " BMI_RECIP[BMI_RECIP>100] = NA; " )
more specifically, BMI_RECIP[BMI_RECIP>100] = NA means (a) take BMI_RECIP, but (b) only the subset of BMI_RECIP>100 (the [ ] means the subset of ) and (c) recode it to NA
let me know if this is not clear, also http://goo.gl/jDSxl or get me on a chat and i will explain further
ricardo - it is not that I don't understand the code but it always gives an error message. what is ".data" not found? I did upload the dataset.
Error in recode.default(BMI_RECIP, " BMI_RECIP[BMI_RECIP>100] = NA ") :
object '.data' not found
On Wed, Jun 13, 2012 at 11:51 AM, Ricardo Pietrobon < reply@reply.github.com
wrote:
like this:
BMI_RECIP_clean <- recode(BMI_RECIP, " BMI_RECIP[BMI_RECIP>100] = NA; " )
more specifically, BMI_RECIP[BMI_RECIP>100] = NA means (a) take BMI_RECIP, but (b) only the subset of BMI_RECIP>100 (the [ ] means the subset of ) and (c) recode it to NA
let me know if this is not clear, also http://goo.gl/jDSxl or get me on a chat and i will explain further
Reply to this email directly or view it on GitHub: https://github.com/rpietro/airwayDehiscence/issues/8#issuecomment-6304849
note to self: never write code on a rush -- just fixed it, should work now, or at least it works on mine. please try:
BMI_RECIP[BMI_RECIP>100] <- NA qplot(BMI_RECIP)
On Wed, Jun 13, 2012 at 3:45 PM, mworni < reply@reply.github.com
wrote:
ricardo - it is not that I don't understand the code but it always gives an error message. what is ".data" not found? I did upload the dataset.
Error in recode.default(BMI_RECIP, " BMI_RECIP[BMI_RECIP>100] = NA ") :
object '.data' not found
On Wed, Jun 13, 2012 at 11:51 AM, Ricardo Pietrobon < reply@reply.github.com
wrote:
like this:
BMI_RECIP_clean <- recode(BMI_RECIP, " BMI_RECIP[BMI_RECIP>100] = NA; " )
more specifically, BMI_RECIP[BMI_RECIP>100] = NA means (a) take BMI_RECIP, but (b) only the subset of BMI_RECIP>100 (the [ ] means the subset of ) and (c) recode it to NA
let me know if this is not clear, also http://goo.gl/jDSxl or get me on a chat and i will explain further
Reply to this email directly or view it on GitHub:
https://github.com/rpietro/airwayDehiscence/issues/8#issuecomment-6304849
Reply to this email directly or view it on GitHub: https://github.com/rpietro/airwayDehiscence/issues/8#issuecomment-6311357
cool - now it works - the benefit is even that the variable name does not change this way!
On Wed, Jun 13, 2012 at 4:07 PM, Ricardo Pietrobon < reply@reply.github.com
wrote:
note to self: never write code on a rush -- just fixed it, should work now, or at least it works on mine. please try:
BMI_RECIP[BMI_RECIP>100] <- NA qplot(BMI_RECIP)
On Wed, Jun 13, 2012 at 3:45 PM, mworni < reply@reply.github.com
wrote:
ricardo - it is not that I don't understand the code but it always gives an error message. what is ".data" not found? I did upload the dataset.
Error in recode.default(BMI_RECIP, " BMI_RECIP[BMI_RECIP>100] = NA ") :
object '.data' not found
On Wed, Jun 13, 2012 at 11:51 AM, Ricardo Pietrobon < reply@reply.github.com
wrote:
like this:
BMI_RECIP_clean <- recode(BMI_RECIP, " BMI_RECIP[BMI_RECIP>100] = NA; " )
more specifically, BMI_RECIP[BMI_RECIP>100] = NA means (a) take BMI_RECIP, but (b) only the subset of BMI_RECIP>100 (the [ ] means the subset of ) and (c) recode it to NA
let me know if this is not clear, also http://goo.gl/jDSxl or get me on a chat and i will explain further
Reply to this email directly or view it on GitHub:
https://github.com/rpietro/airwayDehiscence/issues/8#issuecomment-6304849
Reply to this email directly or view it on GitHub:
https://github.com/rpietro/airwayDehiscence/issues/8#issuecomment-6311357
Reply to this email directly or view it on GitHub: https://github.com/rpietro/airwayDehiscence/issues/8#issuecomment-6311927