I want to initialise a data frame such that it contains a variety of columns, some are character vectors but not factors, while other are factors.
In such a case, I cannot use stringsAsFactors
because that would set all columns to be factors or characters depending on its value.
What can I do?