In the process of moving a number of my scripts from MATLAB - R, I've
discovered that there is no 'pure' equivalent of MATLAB's cell arrays,
which I use quite often. Basically, I create matrices (as a cell array)
where each element of the matrix is itself a matrix (e.g., 2x2 cell
array where
Prof Brian Ripley wrote:
matrix(some_list, nr, nc, byrow=TRUE) may be what you are looking for.
R arrays can be of any vector type, including list. I'd get used to
R's Fortran ordering rather than force transposes all the time.
Thanks very much. And I thought I'd left some aspects of my
Gabor Grothendieck wrote:
Try this:
AA - matrix(list(A, 10*A, 100*A, 1000*A), 2, byrow = TRUE)
AA[1,2]
Seems to do the trick. Thanks!
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting
, lapply(AA, [, 1, 1))
On 9/27/06, Gabor Grothendieck [EMAIL PROTECTED] wrote:
Try this:
AA - matrix(list(A, 10*A, 100*A, 1000*A), 2, byrow = TRUE)
AA[1,2]
On 9/27/06, Evan Cooch [EMAIL PROTECTED] wrote:
In the process of moving a number of my scripts from MATLAB - R, I've
discovered
to
anything, but I'm not sure.
Suggestions? Pointers to the obvious?
Thanks!
--
--
Evan Cooch e.mail: [EMAIL PROTECTED]
Department of Natural Resources voice: 607-255-1368
Fernow Hall - Cornell University
Eik Vettorazzi wrote:
test=matrix(c( expression(x^3-5*x+4), expression(log(x^2-4*x
works.
Well, not really (or I'm misunderstanding). Your code enters fine (no
errors), but I can't access individual elements - e.g., test[1,1] gives
me an error:
test=matrix(c( expression(x^3-5*x+4),
- 5 * x + 4)
Using list() with language objects is much safer if you just want to
make lists of them.
-- Tony Plate
Evan Cooch wrote:
Eik Vettorazzi wrote:
test=matrix(c( expression(x^3-5*x+4), expression(log(x^2-4*x
works.
Well, not really (or I'm misunderstanding). Your code
Joris De Wolf wrote:
Are your sure your second solution does not work? Try again...
Turns out the second approach did work - but only once I stopped
cutting-and-pasting between two different operating systems (Linux and
Windows under Linux). Apparently, some of the cut-and-paste things I
Greetings -
I'm trying to compile R under GNU/Linux (RHEL 4) on a multi-Opteron box,
with ACML support.
First, I downloaded and installed ACML 3.5 - GNU version, although I'm
not entirely sure what the differences are - from the AMD website. The
ACML libraries were installed to
Greetings -
For a number of reasons, I'm moving from CODA to BOA - and I have one or
two really basic, boa-newbie questions. While I have the 'menu-driven'
version of boa working fine (most recent version, running under R 2.3.1
on a Windows machine), for the life of me I can't seem to get some
Greetings -
After 20+ years of using SAS, for a variety of reasons, I'm using [R]
for a bunch of things - while I'm getting a pretty good a handling
[R] for script programming, and statistical analysis, I'm struggling
with 'pulling data into [R]'. For reasons beyond my control, a number
of
At 12:14 PM 4/1/2006, Gabor Grothendieck wrote:
OK, so after a bit of reading, seems I need to use RODBC (I'm using
[R] 2.2.1 for Windows, at the moment). But, I can't seem to figure
out the basics. Suppose the file I need to 'work with' is
test.dbf So, I try the following:
12 matches
Mail list logo