[R] help needed

stephen sefick ssefick at gmail.com
Sun Nov 23 19:24:24 CET 2008


would you post reproducible code with dummy data so that we have
something to start with.
thanks

On Sun, Nov 23, 2008 at 12:08 PM, gauravbhatti <gaurav15984 at hotmail.com> wrote:
>
> hi I have a matrix (10x10) and I have to perform t tests on each row by
> considering first 5 elements as data set A and next 5 as data set B. This
> part is easy, However after one t test on each row, I have to randomly
> permute each column to get new values for each row and then perform another
> t.test. I can permute the column randomly using the function sample(x) but i
> am having problem in fitting this into the matrix to perform t test on the
> row. I would appreciate if someone can help me with this.
> Or is there a function to randomly get different  matrix from one original
> matrix  without having to deal with different columns?
> --
> View this message in context: http://www.nabble.com/help-needed-tp20648304p20648304.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Stephen Sefick

Let's not spend our time and resources thinking about things that are
so little or so large that all they really do for us is puff us up and
make us feel like gods.  We are mammals, and have not exhausted the
annoying little problems of being mammals.

								-K. Mullis



More information about the R-help mailing list