Dear ALL I don't know why I can see this error in run this sentences. In paste("V", 1L:cols, sep = "") : NAs introduced by coercion DATA<-read.delim ("D:\\DATA\\GeneExpression.txt",header=FALSE) I will be glad if you help me. Best Regards, Stat Consult [[alternative HTML version deleted]]
See the body of all messages to R-help: PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. and we do not know what D:\\DATA\\GeneExpression.txt is. Uwe Ligges On 20.04.2011 08:56, Stat Consult wrote:> Dear ALL > > I don't know why I can see this error in run this sentences. > > In paste("V", 1L:cols, sep = "") : NAs introduced by coercion > > > > DATA<-read.delim ("D:\\DATA\\GeneExpression.txt",header=FALSE) > > I will be glad if you help me. > > Best Regards, > Stat Consult > > [[alternative HTML version deleted]] > > ______________________________________________ > 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.
On Wed, Apr 20, 2011 at 11:26:19AM +0430, Stat Consult wrote:> Dear ALL > > I don't know why I can see this error in run this sentences. > > In paste("V", 1L:cols, sep = "") : NAs introduced by coercionCheck, what "cols" is. This warning may be obtained, if "cols" is a character value. For example cols <- "a" paste("V", 1L:cols, sep = "") Error in 1L:cols : NA/NaN argument In addition: Warning message: In paste("V", 1L:cols, sep = "") : NAs introduced by coercion> DATA<-read.delim ("D:\\DATA\\GeneExpression.txt",header=FALSE)What is the relationship of this to the command above? If you include a reproducible example, you have a better chance to get a useful answer. Petr Savicky.
Maybe Matching Threads
- Error in pf(q, df1, df2, lower.tail, log.p) : Non-numeric argument to mathematical function
- converting factor to numeric gives "NAs introduced by coercion"
- Feature request: extend functionality of 'unlist()' by args 'delim=c("/", "_", etc.)' and 'keep.special=TRUE/FALSE'
- Changing a value in a particular row and column within a text file
- recursive methods for concatenating sets of files