Sorry -- I meant to write 'row names,' but the question specifically is
where those unlikely numbers come from. So I guess it comes down to
why, when 'bar' is the first item, the row name is assigned '2' rather
than '1' .
On 12/1/11 6:26 PM, Sarah Goslee wrote:
Those are row *names*, not r
Those are row *names*, not row *numbers*. It's just that if you don't specify,
numbers are assigned by default when creating a data frame.
Your rbind() statements are implicitly creating a data frame, so the likely
information is in ?data.frame:
check.names: logical. If ‘TRUE’ then the names of
"Not that it really matters, but"
Can someone explain how the row numbers get assigned in the following
sequence? It looks like something funky happens when rbind() coerces
'bar' into a dataframe.
In either sequence of rbind below, once you get past the first two rows,
the row numbers count nor
3 matches
Mail list logo