Hi folks, An Introduction to R
3.3 Getting and setting attributes http://cran.r-project.org/doc/manuals/R-intro.html#Vectors-and-assignment > z <- 0:9 > z [1] 0 1 2 3 4 5 6 7 8 9 > attr(z, "dim") <- c(10,10) Error in attr(z, "dim") <- c(10, 10) : dims [product 100] do not match the length of object [10] Please help me to understand what mistake I committed? TIA B.R. Stephen L ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.