change columns to integers by indexing in data.frame

A post was merged into an existing topic: change data type by indexing