Skip to content

categorical data

1 message · Christian Oswald

#
Hello,

thank you very much, it works super!

Christian

Hi
On 10 Aug 2006 at 9:19, Christian Oswald wrote:
Date sent:      	Thu, 10 Aug 2006 09:19:06 +0200
From:           	Christian Oswald <oswald at dhlaw.de>
To:             	r-help at stat.math.ethz.ch
Subject:        	Re: [R] categorical data
Send reply to:  	oswald at dhlaw.de
	<mailto:r-help-request at stat.math.ethz.ch?subject=unsubscribe>
	<mailto:r-help-request at stat.math.ethz.ch?subject=subscribe>
This is not a data frame but character matrix
try str(df). It was probably constructed by cbind(...), try to use
data.frame(....) instead.

Or you can try

as.data.frame(df) but then you need to change resulting factors back
to numeric
?as.character
?as.numeric

HTH
Petr


try
Petr Pikal
petr.pikal at precheza.cz

______________________________________________
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
and provide commented, minimal, self-contained, reproducible code.