Some differences in ease of use:
[1] Construct a matrix
MATLAB: y = [1 1; 2 2; 6 6];
R: y <- matrix(c(1, 2, 6, 1, 2, 6), 3)
[2] Insert a new row r = [3 3];
MATLAB: x = [y; r];
R: x <- rbind(y, c(r));
Which is intuitive and concise? ;)
mean(iris(iris(:,5)==2,2))
is more intuitive than mean(iris[iris$Species=="versicolor","Sepal.Width"])?
Or that constructing matrix by mapping f on 1:10 like M=[]
for not_i=1:10
M[:,not_i]=f(not_i)
is more concise that sapply(1:10,f)?
(I know there is arrayfun, but I have never seen it used except in wow-MATLAB-is-functional blog posts) M = repmat(f(1:10), n, 1);
where 'n' gives the number of rows you want in 'M' and 'f' is written in proper "Matlab" style (i.e. behaves reasonably when given an array as input). Or, to be more in the spirit of linear algebra, you could write: M = ones(n,1) * f(1:10);
And, if you only want one row-wise copy, you could (succinctly) write: M = f(1:10);
Or, as you suggested, you could write something like: M = repmat(arrayfun(@(x)f(x), 1:10), n, 1);
Or, getting more silly, and using the handy bsxfun, you could write: M = bsxfun(@times, ones(n,10), f(1:10));
If you don't feel like implementing 'f' so as to permit array inputs, you could modify this to: M = bsxfun(@times, ones(n,10), arrayfun(@(x)f(x), 1:10));
Anyhow, Matlab is very productive if you can effectively wield its powerful built-ins.The problem you've solved has an equally simple implementations in R; f(1:10) for a single copy, matrix(f(1:10),10,n) for n columns, matrix(f(1:10),n,10,byrow=T) for n rows, etc.
The confusion is from the fact that people think that matrices (or data frames) are R's base types -- they are not, only vectors and lists are. Matrix is just something with dim attribute, data frame is a list of equal-length elements with a proper class.
I'm curious about about what you mean by this. How would a single package fix that? And does "fix" mean to make matrices easier or to make dataframes more broadly effective?
It's a bit like JavaScript; if you treat JS like "Java script" or "C without types", you'll suffer. Exploit its true nature and it will flourish.