Create an empty data.frame
Just initialize it with empty vectors: Here’s an other example with different column types : N.B. : Initializing a data.frame with an empty column of the wrong type does not prevent further additions of rows having columns of different types.This method is just a bit safer in the sense that you’ll have the correct column types from the beginning, … Read more