Dear Members, I want to simulate a vector of constants values with dimention = 200x2 and all values of this vector are 1. Any help please. Regards -- Thanoon Y. Thanoon PhD Candidate Department of Mathematical Sciences Faculty of Science University Technology Malaysia, UTM E.Mail: Thanoon.younis80 at gmail.com E.Mail: dawn_prayer80 at yahoo.com Facebook:Thanoon Younis AL-Shakerchy Twitter: Thanoon Alshakerchy H.P:00601127550205 [[alternative HTML version deleted]]
If you mean you need a matrix of that size, matrix(1, nrow=200, ncol=2) On Thu, Oct 29, 2015 at 1:07 PM, thanoon younis <thanoon.younis80 at gmail.com> wrote:> Dear Members, > > I want to simulate a vector of constants values with dimention = 200x2 and > all values of this vector are 1. > > Any help please. > > > Regards >
Hi, Thanoon!> I want to simulate a vector of constants values with dimention = 200x2 and > all values of this vector are 1.You mean "I want to _construct_ a _matrix_ of dimension 200 x 2 with all entries equal to 1", don't you? Homework? Take a look at> ?matrixHth -- Gerrit> Any help please. > > > Regards > > -- > Thanoon Y. Thanoon > PhD Candidate > Department of Mathematical Sciences > Faculty of Science > University Technology Malaysia, UTM > E.Mail: Thanoon.younis80 at gmail.com > E.Mail: dawn_prayer80 at yahoo.com > Facebook:Thanoon Younis AL-Shakerchy > Twitter: Thanoon Alshakerchy > H.P:00601127550205 > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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.
Have you read any R tutorials?? This is about as basic as it gets. ?rep -- Bert P.S. Due to vectorized operations, there is probably no need to do this anyway! Bert Gunter "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." -- Clifford Stoll On Thu, Oct 29, 2015 at 10:07 AM, thanoon younis <thanoon.younis80 at gmail.com> wrote:> Dear Members, > > I want to simulate a vector of constants values with dimention = 200x2 and > all values of this vector are 1. > > Any help please. > > > Regards > > -- > Thanoon Y. Thanoon > PhD Candidate > Department of Mathematical Sciences > Faculty of Science > University Technology Malaysia, UTM > E.Mail: Thanoon.younis80 at gmail.com > E.Mail: dawn_prayer80 at yahoo.com > Facebook:Thanoon Younis AL-Shakerchy > Twitter: Thanoon Alshakerchy > H.P:00601127550205 > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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.