Can I specify data type in r for (like numeric, factor, character, etc) for each column of data frame as I import it from excel.
For example, if I have 3 columns (call them X1, X2, and X3) in a data frame (which I call X) and I want the column X1 to be a factor, column X2 to be numeric and column X3 to be character let say X (data frame) is an excel file, how do I import it into r?