On Wed, 18 Dec 2019 12:25:24 -0600
Ana Marija <sokovic.anamar...@gmail.com> wrote:

> Error in cor(D[, 18 + exon_offset], D[, 19 + exon_offset]) :
>   'x' must be numeric

Try str(a) to find out the types of the columns. A stray typo could
make a representation of a number impossible to parse and make the
whole column textual. Use
which(is.na(as.numeric(as.character(a[,column_number])))) to find out
the row number where it happened (using extra as.character() here in
case the column is a factor).

-- 
Best regards,
Ivan

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

Reply via email to