squeeze | R Documentation |
Works just like Matlab's squeeze function: if anything in dim(x) equals one the corresponding dimension is removed
squeeze(x)
x |
an array |
A <- array(1:9,c(3,1,3)) #3D array with one flat dimension
A %>% squeeze #flat dimension removed
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.