Dear people, I need to generate 100 different matrices, without particular characteristics but using only one command! Do you know some way? thank You -- View this message in context: http://r.789695.n4.nabble.com/creating-several-different-matrices-tp4642768.html Sent from the R help mailing list archive at Nabble.com.
Hi Homework? "No homework" policy in this list. Anyway here are some hints. ?for ?split Regards Petr> -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- > project.org] On Behalf Of cesare orsini > Sent: Tuesday, September 11, 2012 4:17 PM > To: r-help at r-project.org > Subject: [R] creating several different matrices > > Dear people, > > I need to generate 100 different matrices, without particular > characteristics but using only one command! > > Do you know some way? > > thank You > > > > -- > View this message in context: http://r.789695.n4.nabble.com/creating- > several-different-matrices-tp4642768.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.
Further hint: If only there were some recently added distribution that was defined to give random matrices...... news() M On Tue, Sep 11, 2012 at 3:56 PM, PIKAL Petr <petr.pikal at precheza.cz> wrote:> Hi > > Homework? "No homework" policy in this list. > > Anyway here are some hints. > > ?for > ?split > > Regards > Petr > > >> -----Original Message----- >> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- >> project.org] On Behalf Of cesare orsini >> Sent: Tuesday, September 11, 2012 4:17 PM >> To: r-help at r-project.org >> Subject: [R] creating several different matrices >> >> Dear people, >> >> I need to generate 100 different matrices, without particular >> characteristics but using only one command! >> >> Do you know some way? >> >> thank You >> >> >> >> -- >> View this message in context: http://r.789695.n4.nabble.com/creating- >> several-different-matrices-tp4642768.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. > > ______________________________________________ > 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.
Hello, Try, using data and matrix dims of your choice, replicate(100, matrix(rnorm(12), ncol = 3)) Hope this helps, Rui Barradas Em 11-09-2012 15:17, cesare orsini escreveu:> Dear people, > > I need to generate 100 different matrices, without particular > characteristics but using only one command! > > Do you know some way? > > thank You > > > > -- > View this message in context: http://r.789695.n4.nabble.com/creating-several-different-matrices-tp4642768.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.