You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
sum1 <- function(m) {
|
|
res = 0
|
|
|
|
for(i in 1:dim(m)[1]) {
|
|
for(j in 1:dim(m)[2]) {
|
|
res <- res + m[i,j]
|
|
}
|
|
}
|
|
|
|
return(res)
|
|
}
|