Hi Suman, Try:
array(1:24,c(4,3,2)) Cheers, Tsjerk On Thu, Jun 3, 2010 at 6:52 AM, suman dhara <suman.dhar...@gmail.com> wrote: > Sir, > I want to use a 3-dimensional array in R. How can I initialize the array? > Can you give me a eaxmple? > > Thanks & Regards, > > Suman Dhara > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@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. > -- Tsjerk A. Wassenaar, Ph.D. post-doctoral researcher Molecular Dynamics Group Groningen Institute for Biomolecular Research and Biotechnology University of Groningen The Netherlands ______________________________________________ R-help@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.