[R] R: subset dataframe/list

Cecilia Carmo cecilia.carmo at ua.pt
Tue Jun 2 11:43:18 CEST 2009


Thank you all!!!

The problem was the decimal symbol! My data was saved in a 
txt file, so I’ve introduced the dec="," in «read.table» 
and it worked. What I’ve done was
coeficientes<-read.table("coeficientes.txt",sep="\t",header=T,dec=",")

Then, subset worked fine
coeficientesWanted<-subset(coeficientes,b1>0)

Thanks again,
Cecília Carmo (Universidade de Aveiro – Portugal)






   --- the forwarded message follows ---
-------------- next part --------------
An embedded message was scrubbed...
From: "Cecilia Carmo" <cecilia.carmo at ua.pt>
Subject: Fwd: [R] subset dataframe/list
Date: Mon, 01 Jun 2009 21:34:33 +0100
Size: 4560
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20090602/c8422ca1/attachment-0002.mht>


More information about the R-help mailing list