You can use Joshua's solution but I think you need Elts_int <- as.matrix(tmp_int)
Or for loops:
z <- 1 ## Initialize
counter <- 1 ## Initialize
for(y in 1:48) { ## Assuming 48 columns otherwise, swap 48 and 32
for (x in 1:32) {
z[counter] <- tmp_int[x,y]
counter <- 1 + counter
}
}
z is a 1d vector.