[R] problems with which

Michael Bedward michael.bedward at gmail.com
Sun Aug 15 13:04:46 CEST 2010


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



More information about the R-help mailing list