I tried norm, but I think it gives the wrong result. (the norm of c(1, 2, 3) is sqrt(1*1+2*2+3*3), but it returns 6..
norm
c(1, 2, 3)
sqrt(1*1+2*2+3*3)
6
Create your matrix as column vise using cbind then the norm function works well with Frobenius norm (the Euclidean norm) as an argument.
x1<-cbind(1:3) norm(x1,"f")
x1<-cbind(1:3)
norm(x1,"f")
[1] 3.741657