powered by
Works just like Matlab's squeeze function: if anything in dim(x) equals one the corresponding dimension is removed
squeeze(x)
an array
# NOT RUN { A <- array(1:9,c(3,1,3)) #3D array with one flat dimension A %>% squeeze #flat dimension removed # }
Run the code above in your browser using DataLab