Julia Cains wrote: > Dear R helpers > > Suppose I want to use two conditions > > if (x >= 42) and (x<48) > > z = 45 > > else > > if (x>= 48) and (x<60) > > z = 14 > > how do use this "and" operator to combine two conditions. > > I am sorry as I know for many of you, this is very basic question but I am > new to R and trying to learn it as early as possible. > > Extremely sorry for this stupid question.
Have a look at help(Logic). -- O__ ---- Peter Dalgaard Ă˜ster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalga...@biostat.ku.dk) FAX: (+45) 35327907 ______________________________________________ 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.