I am having trouble with removing columns in a matrix using column names - the output is dependent on the order of the column names.
matrix <- matrix(c(1,2,3,4