Skip to content
Back to formatted view

Raw Message

Message-ID: <4253FA8F.6090309@statistik.uni-dortmund.de>
Date: 2005-04-06T15:04:47Z
From: Uwe Ligges
Subject: Error in hist.default(A) : `x' must be numeric
In-Reply-To: <200504061657.08448.ferri.leberl@gmx.at>

Mag. Ferri Leberl wrote:
> Dear everybody!
> I have load a list A of numbers and want a histogram to be drawn.
> on
> hist(Y)
> the Machine returns:
> Error in hist.default(A) : `x' must be numeric
> I found out, that the list is of type data.frame.
> Y<-as.numeric(Y)
> returns
> Error in as.double.default(A) : (list) object cannot be coerced to double
> What schould I do?
> Than you in advance!

Extract the relevant vector from your data frame Y (this is a very 
prbably guess).

Uwe Ligges

> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html