Hello,
I am having a problem with the variable structure displayed in the Environment. For instance, if I put the code below:
m2 <- matrix(c("a", "b",
"c", "d"),
nrow = 2,
byrow = T)
and check the structure of m2 with str(m2), it returns
str(m2)
chr [1:2, 1:2] "a" "c" "b" "d"
However, chr [1:4] "a" "c" "b" "d" is displayed in the Global Environment (as below).
I am not sure why this is happening and I would like to seek advice to fix this.
Thank you in advance!