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@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
signature.asc
Description: Digital signature
______________________________________________ R-help@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.