R> data.frame()
data frame with 0 columns and 0 rows
I can make the above data.frame with 0 row and 0 column. How to make a data.frame with 1 row and 0 column?
EDIT: It is absolutely useful, as shown in the following use case.
R> data.frame(data.frame(), y=1)
Error in data.frame(data.frame(), y = 1) :
arguments imply differing number of rows: 0, 1
R> data.frame(data.frame(x=1)[,0,drop=F], y=1)
y
1 1