Is there a way to replace columns for a table without extracting all the data into a matrix or array?