Hi there I know, I'm sure you discussed this stuff 100 times, but I really have a basic understanding problem, if and how do I create a multidimensional array in R. I'm coming from MATLAB and there it's as easy as you ever could imagine. Ok, so, I want to have an array, where I can fill in data from a Excel spreadsheet. The array should be addressed like this: data["Cacao"]["Open"] or data["Cotton"]["Close"], you get me? Ok, that's fine. Otherwise feel free to ask questions. Because I tried to build such an array but without success (even with googling)... Thank you, Michael
On 20/11/2008, at 8:51 AM, Michael Zak wrote:> Hi there > > I know, I'm sure you discussed this stuff 100 times, but I really have > a basic understanding problem, if and how do I create a > multidimensional array in R. I'm coming from MATLAB and there it's as > easy as you ever could imagine. > > Ok, so, I want to have an array, where I can fill in data from a Excel > spreadsheet. The array should be addressed like this: > > data["Cacao"]["Open"] or data["Cotton"]["Close"], you get me? Ok, > that's fine. Otherwise feel free to ask questions. Because I tried to > build such an array but without success (even with googling)...I would suggest that you start by learning something about R. The document ``An Introduction to R'' available (start with ``Documentation'') from the R web page would be a good beginning. Chapter 5 is relevant to your particular question. cheers, Rolf Turner ###################################################################### Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
Hello a good place to start is R-and-octave.txt, in the contributed docs section of CRAN. This translates between common matlab and R commands HTH rksh Michael Zak wrote:> Hi there > > I know, I'm sure you discussed this stuff 100 times, but I really have > a basic understanding problem, if and how do I create a > multidimensional array in R. I'm coming from MATLAB and there it's as > easy as you ever could imagine. > > Ok, so, I want to have an array, where I can fill in data from a Excel > spreadsheet. The array should be addressed like this: > > data["Cacao"]["Open"] or data["Cotton"]["Close"], you get me? Ok, > that's fine. Otherwise feel free to ask questions. Because I tried to > build such an array but without success (even with googling)... > > Thank you, Michael > > ______________________________________________ > 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.-- Robin K. S. Hankin Uncertainty Analyst University of Cambridge 19 Silver Street Cambridge CB3 9EP 01223-764877