Skip to content
Prev 299785 / 398503 Next

fill 0-row data.frame with 1 line of NAs

On Jul 10, 2012, at 2:05 PM, Rui Barradas wrote:

            
It would be difficult to be more compact than this:

 > iris[1, ][NA,]
    Sepal.Length Sepal.Width Petal.Length Petal.Width Species
NA           NA          NA           NA          NA    <NA>

--  
David
David Winsemius, MD
Heritage Laboratories
West Hartford, CT