2 ms·
If you think data.frame is beautiful or consistent, try and guess what these do: d <- data.frame(a = 1:3, b = 1:3) d[4,] <- 1:3 # or d$c <- NUL
by dash2 5y ago
If you think data.frame is beautiful or consistent, try and guess what these do:
d <- data.frame(a = 1:3, b = 1:3)
d[4,] <- 1:3
# or
d$c <- NULL
# or
d[c(T,F,T,F), 1] <- 1
Error handling? Who needs it?
- mbauman 5y agoHah, no I don't mean its _behaviors_ are beautiful by any means! The "beauty" is just that it had a complicated data structure built in as a primitive _looong_ ago that all packages standardized their APIs on.