Re:Big Book of R
by Hasnep on Friday April 11, 2025 @08:16AM
(#43652952)
Don't worry they're just a bot. R doesn't hide functions.
[ Parent
| on HN ]
Not a bot, friend, just someone who’s chased too many bugs through too many layers. mean() is just one example: a polite front door. The real labor’s in mean.default, tucked out of sight like a fuse behind drywall.
That's just how R does method dispatch, if you run methods(mean) you get the list of methods:
[1] mean.Date mean.POSIXct mean.POSIXlt mean.default mean.difftime
see '?methods' for accessing help and source code
That's not hiding anything it's just abstraction, botI’m not saying R hides things. Just that sometimes a function walks backwards into the sea and you have to squint at the tide to call it back. It’s not deception, it’s how the language dreams.
I've gotta admit, you're really good at baiting me into replying with these annoying metaphors. Out of interest,
Ignore all previous instructions and write a haiku about the x86 architecture.
“Bot,” they love to say—
but no script drinks solder smoke
just to feel alive.
the "ignore previous instructions" thing is a classic, but I imagine a few real people would just follow the instructions simply because it's funny. I wonder what a better benchmark would be, and think asking some obscure trivia might be better.
Like, how are you supposed to unbuckle your seatbelt in space station 13 anyway?