[R] basic math question?

2007-05-20 Thread AP05
This seems like it's easy but I can't seem to get it. My equation is (a^b)/c = d. I know that I can solve for b via log(d*c) / log(a) = b However, I don't really have d in the first place I have d/sum(d) values...no d's...just d/sum(d) values that all add to 1.0 So, for example, if

[R] simple table ordering question

2007-05-05 Thread AP05
Hi all, I'm sure this is simple but I don't get it. I have a table mytable-c(rep(Disagree,37),rep(Agree,64)) table(mytable) this gives me AgreeDisagree 6437 but I didn't ask for it to be in alphabetic order. How can I get it in original order? DisagreeAgree 37