Hi Hyunchul, See ?match -Ista
On Mon, Aug 16, 2010 at 1:06 PM, Hyunchul Kim <hyunchul.kim....@gmail.com> wrote: > Hi all, > > How to convert following simple python script to R > > > if x in a_list: > print x > > OR > > simply, how to test if a vector contain a value? > > > Thank you in advance, > > Hyunchul > > [[alternative HTML version deleted]] > > ______________________________________________ > 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. > -- Ista Zahn Graduate student University of Rochester Department of Clinical and Social Psychology http://yourpsyche.org ______________________________________________ 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.