[R] Binomial

2011-05-12 Thread blutack
Hi, I need to create a function which generates a Binomial random number without using the rbinom function. Do I need to use the choose function or am I better just using a sample? Thanks. -- View this message in context: http://r.789695.n4.nabble.com/Binomial-tp3516778p3516778.html Sent from th

[R] Uniform Gaussian Kernel

2011-05-04 Thread blutack
I have a vector with lots of different numbers. I need to make a graph showing the Uniform Distribution of the figures. I have created a graph showing all the different values, but now want individual Gaussian Kernel round each point. This is what I have but each time it comes up with an error as I

[R] Saving Values in a Vector from a For Loop

2011-05-04 Thread blutack
Hi, I have a created a function, but now I need to call it about a hundred times and store the results as a vector. I think doing a for loop would work, but I cant work out how to save the values generated from the function as a vector. Any ideas? Thanks. -- View this message in context: http:/

[R] Bar Chart

2011-03-23 Thread blutack
How do you do a bar chart of 2 vectors? I have one vector which has 10 numbers, and another which has 10 names. The numbers are the frequency of the corresponding name, but when I do a bar chart it says that there is no height. Thanks. -- View this message in context: http://r.789695.n4.nabble.c