I want a way to create a empty data.frame in R, I just want to point out data types for each column and name it without any row created.
df <- data.frame(Date=as.Date("29/05/2019", format="%d/%m/%Y"),
File="", User="", stringsAsFactors=FALSE)
df <- df[-1,]
currently I am using this command, which is doing my work but also creating a row which is waste to me.
Suggest me a more efficient way to do it.