I\'m trying to initialize a data.frame without any rows. Basically, I want to specify the data types for each column and name them, but not have any rows created as a result
If you already have an existent data frame, let's say df that has the columns you want, then you can just create an empty data frame by removing all the rows:
empty_df = df[FALSE,]
Notice that df still contains the data, but empty_df doesn't.
I found this question looking for how to create a new instance with empty rows, so I think it might be helpful for some people.