[R] Why the result is coming as NULL?

Jessica Streicher j.streicher at micromata.de
Wed Aug 1 09:37:28 CEST 2012


I assume "result" means the invalid variable.

works with sample data frame i made, so please provide an example of cdb_frame. You can use dput(cdb_frame) for that, or dput(head(cdb_frame)) if you have a lot of data.

For example it could be that $Publication is a string, not numeric.

On 01.08.2012, at 08:58, Sri krishna Devarayalu Balanagu wrote:

> Why the result is coming as NULL. Can anyone help. I want to find the outliers for a reference
> 
> 
> setwd("D:/AZ")
> 
> library("RODBC")
> cdb_cnct <- odbcConnectExcel("Book1.xls")
> cdb_frame <- sqlFetch(cdb_cnct, "Sheet1")
> odbcClose(cdb_cnct)
> rm(cdb_cnct)
> 
> x<- cdb_frame$Publication >=1990 & cdb_frame$Publication <=2012
> invalid <- cdb_frame[!x, c("Reference")]
> invalid
> 
> ________________________________
> Notice: The information contained in this electronic mail message is intended only for the use of the designated recipient. This message is privileged and confidential. and the property of GVK BIO or its affiliates and subsidiaries. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this message in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by telephone +91-40-66929999<tel:%2B91-40-66929999> and destroy any and all copies of this message in your possession (whether hard copies or electronically stored copies).
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list