Re: [R] Creating factors from continuous variables

2005-08-27 Thread Peter Dalgaard
Prof Brian Ripley [EMAIL PROTECTED] writes: ?cut This is in `An Introduction to R', the manual which ships with R and basic reading. ...as well as in the Compendium section and in an exercise in Ch.1 in at least one of the cited references. P.S. Here's what I have read to try to find

Re: [R] Creating factors from continuous variables

2005-08-26 Thread Berton Gunter
?cut -- Bert Gunter Genentech Non-Clinical Statistics South San Francisco, CA The business of the statistician is to catalyze the scientific learning process. - George E. P. Box -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David James

Re: [R] Creating factors from continuous variables

2005-08-26 Thread Prof Brian Ripley
?cut This is in `An Introduction to R', the manual which ships with R and basic reading. On Fri, 26 Aug 2005, David James wrote: What is the quickest way to create many categorical variables (factors) from continuous variables? This is the approach that I have used: # create sample data