Re: [R] Help Transforming sums into observations

2011-12-21 Thread kbrownk
I ended up just using a vba macro for Excel. Hopefully I can start transitioning to R for some of these tasks soon. Thanks, kbrownk On Dec 20, 6:14 pm, Sarah Goslee wrote: > > bindata <- 1:5 > > nobs <- c(2, 3, 1, 4, 3) > > rep(bindata, times=nobs) > >  [1] 1 1 2 2 2 3 4 4 4 4 5 5 5 > > for the

Re: [R] Help Transforming sums into observations

2011-12-21 Thread kbrownk
Thanks for the heads up. I don't have a #. My data is as you suggest. I tried to generalize my example because I'm open to reformatting for the solution to my problem. Thanks, kbrownk On Dec 20, 6:14 pm, Sarah Goslee wrote: > > bindata <- 1:5 > > nobs <- c(2, 3, 1, 4, 3) > > rep(bindata, times=n

Re: [R] Help Transforming sums into observations

2011-12-20 Thread Sarah Goslee
> bindata <- 1:5 > nobs <- c(2, 3, 1, 4, 3) > rep(bindata, times=nobs) [1] 1 1 2 2 2 3 4 4 4 4 5 5 5 for the R part, and see below: Sarah On Tue, Dec 20, 2011 at 5:45 PM, kbrownk wrote: > I need to measure kurtosis, skew, and maybe dip test on some > distributions I have. Currently my data is

[R] Help Transforming sums into observations

2011-12-20 Thread kbrownk
I need to measure kurtosis, skew, and maybe dip test on some distributions I have. Currently my data is in the form of 2 vectors x and y. Where x is 10 bins and y is the number of observations found in that bin. It seems that the measures I want to run require the actual observations laid out rathe