reorderColumns_#
- swordfish.function.reorderColumns_()#
Change the order of columns of an in-memory table. It modifies the original table instead of creating a new table.
- Parameters:
table (Constant) – An in-memory table that is not shared.
reorderedColNames (Constant) – A string vector indicating column names. It specifies the order of columns after execution. We only need to write the names for the columns whose positions are changed and all columns before them in the new table. For example, if we switch the position of the 3th column and the 6th column, then we only need to specify the names of the first 6 columns.