Re: [R] simple question

2010-04-22 Thread Lee.Adams
Gabriele - How about this: > data<-c("A","A","A","B","B","C","D") > data [1] "A" "A" "A" "B" "B" "C" "D" > table(data) data A B C D 3 2 1 1 Thanks, Lee ". . . people who focus only on 'what is' will create more of 'what is.' People who focus mostly on 'what could be' will begin to create 'wh

Re: [R] argh .. if/else .. why?

2010-02-15 Thread Lee.Adams
I, personally, utilize the ifelse(test,statement,statement) function when possible over the methodology outlined. Lee P. Adams Luminant Energy - Fuel and Emissions Strategy "We must become the change we want to see." -Mahatma Gandhi -Original Message- From: r-help-boun...@r-project.or