[R] problems with which
Tim Gruene
tg at shelx.uni-ac.gwdg.de
Sun Aug 15 13:15:07 CEST 2010
Isn't '!=' the operator applied here, not '='?
On Sun, Aug 15, 2010 at 09:04:46PM +1000, Michael Bedward wrote:
> Hello Nicola,
>
> > sentences_trial <- sentences[which(sentences$Cond!= "an"),]
>
> That should be == "an" instead of = "an"
>
> == is the test for equality whereas = is assignment
>
> Michael
>
> ______________________________________________
> R-help at r-project.org 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.
--
--
Tim Gruene
Institut fuer anorganische Chemie
Tammannstr. 4
D-37077 Goettingen
GPG Key ID = A46BEE1A
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20100815/1db42de9/attachment.bin>
More information about the R-help
mailing list