R: Finding the code for the data.frame method of the [ function

56 Views Asked by At

In R, how do I look at the code for the data.frame method of the [ function?

I have tried the usual plain return on [.data.frame, [.data.frame, and [.data.frame, and none of them work, nor do any of them work with getAnywhere(). getMethod("[", "data.frame") didn't work either. <- the code designations in this paragraph actually denote being surrounded by backticks.

I'm actually looking for the standard code that lets you refer to columns by name, vector of position numbers, logical vector or negative number. If someone could point me toward such code in a more accessible location, that would also constitute a solution from my point of view.

0

There are 0 best solutions below