You do
for(i in 1:n){
a[i] = x[i,1]
where a has length n and x has iter rows, hence you get NA values for
all i > iter...
Best,
Uwe Ligges
On 01.03.2016 07:39, smart hendsome via R-help wrote:
Hi R-users,
I have problem regarding my function. My function as below:
gen.m <- function(
Hi R-users,
I have problem regarding my function. My function as below:
gen.m <- function(n,itr){
set.seed(1234)
m <- matrix(nrow = n, ncol=4)
a <- matrix(nrow = n, ncol = 1)
b <- matrix(nrow = n, ncol = 1)
C <- matrix(nrow = n, ncol = 1)
d <- matrix(nro
2 matches
Mail list logo