Dear list members,
I am using function cbind but I got 2 different results, one is a data
frame and the other is a matrix and I would like to undertand why is the
reason:
I have a data frame called finaldf
names(finaldf)
[1] especie estrato oc1 oc2 oc3 oc4 oc5
oc6
[9] oc7
Dear Manuel,
This is not a matrix versus data-frame issue. The difference is because
in the first case you are extracting multiple items at a time, so the
column names are attached. But in the second, you are really only
extracting individual items, and so the column names are not necessary.