[R] Extending a data frame

Bernd Weiss bernd.weiss at uni-koeln.de
Wed Sep 21 15:24:22 CEST 2005


On 21 Sep 2005 at 9:18, Chuck Cleland wrote:

> Bernd:
>    I think you will get what you want if you convert year from a
>    factor 
> to numeric:
> 
> library(lattice)
> tmp <- read.table("http://www.metaanalyse.de/tmp/test.dat")
> xyplot(Freq~as.numeric(as.character(year)),group=status,data=data.fram
> e(table(tmp)))


Dear Chuck,

yes, that's it! 

Thank's a lot, 

Bernd 


-- 
Bernd Weiss, M.A.
University of Cologne / Research Institute for Sociology
Greinstr. 2 / D-50939 Cologne / Germany
E-Mail: <bernd.weiss at uni-koeln.de>
URL: <http://www.uni-koeln.de/wiso-fak/fisoz/>




More information about the R-help mailing list