On Fri, Dec 23, 2011 at 1:06 AM, Taral wrote:
> Perfect! combn was the trick I needed. Although I'll probably rbind
> the stuff instead of building a new frame. :)
You should try rbind() with the small example I gave before you use it
on your data. You'll immediately see why I didn't. :)
> On Th
Perfect! combn was the trick I needed. Although I'll probably rbind
the stuff instead of building a new frame. :)
On Thu, Dec 22, 2011 at 6:48 PM, Sarah Goslee wrote:
> I'm not at all sure what you mean with your matrix: is that supposed to
> be three columns? What about:
>
>> fakedata <- data.fr
I'm not at all sure what you mean with your matrix: is that supposed to
be three columns? What about:
> fakedata <- data.frame(X=runif(3), Y = runif(3))
> rownames(fakedata) <- c("A", "B", "C")
> dist(fakedata)
A B
B 0.8617733
C 0.3813032 0.5124284
> data.frame(t(combn(rownames(f
3 matches
Mail list logo