Skip to content
Back to formatted view

Raw Message

Message-ID: <CAN6BBTQCW2R+mQuK_ajMxwprbwhUK_312nSwSpNnKEPsvMo6zw@mail.gmail.com>
Date: 2015-08-08T20:44:55Z
From: Nikita Dinger
Subject: Error in rep in matrix - Windows 8- R 3.2.1

y <- matrix(rep(10,4),2,2)
> y
     [,1] [,2]
[1,]   10   10
[2,]   10   10



I expected an output of
> y
     [,1] [,2]
[1,]   10   4
[2,]   10   4



Thanks and Regards.

	[[alternative HTML version deleted]]