Array programming: Difference between revisions

Content deleted Content added
m R: lang="rout"
Line 211:
====R====
The R language supports [[array paradigm]] by default. The following example illustrates a process of multiplication of two matrices followed by an addition of a scalar (which is, in fact, a one-element vector) and a vector:
<syntaxhighlight lang="rrout">
> A <- matrix(1:6, nrow=2) # !!this has nrow=2 ... and A has 2 rows
> A