It works, Arun. Thanks!
(FYI, a couple a the matrices I am dealing with have 1000+ rows, so I had
to do in on a supercomputer at work. For the curious, I am trying to find
all possible scores in a model f language mixing described in:
Title: Structured Variation in Codeswitching: Towards an Empiric
Thank you, Arun, I'll try it and let the list know if it works so the
thread can be closed. I haven't worked in R for several years so I am
really rusty.
FYI, for people interested in why I want to do this, I am trying to
calculate all the possible outcomes of applying the model below to a
bilingua
Hi,
Not sure if this is what you expected:
set.seed(24)
mat1<- matrix(sample(1:20,3*4,replace=TRUE),ncol=3)
set.seed(28)
mat2<- matrix(sample(1:25,3*6,replace=TRUE),ncol=3)
set.seed(30)
mat3<- matrix(sample(1:35,3*8,replace=TRUE),ncol=3)
set.seed(35)
mat4<- matrix(sample(1:40,3*10,replace=TRUE),nc
I expect the answer to involve manipulating indices. But why do you need to do
this? This looks suspiciously like homework, and there is a no-homework policy
on this list (see the Posting Guide).
---
Jeff Newmiller
Homework? We don't do homework here.
-- Bert
On Mon, May 27, 2013 at 8:24 AM, Estigarribia, Bruno
wrote:
> Hello all,
>
> I have 4 matrices with 3 columns each (different number of rows though). I
> want to find a function that returns all possible 3-place vectors
> corresponding to the sum by c
5 matches
Mail list logo