From: Svetlana Eden
Hi, everybody.
This was an interesting discussion last time and it helped me a lot.
Could you please have a look at some feature and tell me
why it was designed this way
(my questions are under #########)
I give it a shot...
x = c(1, 10)
y = c(99, 55)
d <- data.frame(x = x, y = y)
d
x y
1 1 99
2 10 55
add <- data.frame(x = 14, y = 99)
add
x y
1 14 99
d <- rbind(d, add)
d
x y
1 1 99
2 10 55
11 14 99
######### it would be more natural to index the rows: 1,2,3 instead of
#1,2,11 ?!
rownames for data.frame need not be 1, 2, ..., and we need something that's
going to work regardless.
d[3,1]
[1] 14
d[11,1]
[1] NA
######### especially if index '11' is not functioning...
This one seems curious to me. Trying to access non-existing column result
in error:
------------------------------------------------------------------------------
Notice: This e-mail message, together with any attachments,...{{dropped}}