data.frame
and initializes it to a value.
The advantage of doing this over adding it with $
or [,""]
is that the case
nrow(o) == 0
is adequately handled and doesn't raise an error.
addProperty(o, name, type, value = NA)
"addProperty"(o, name, type, value = NA)
data.frame
to add the column toNA
if not given)o = data.frame,name = character,type = character
: Add a new column to a data.frame