[Rd] subset data.frame at C level

Morgan Morgan morg@n@em@||box @end|ng |rom gm@||@com
Wed Jun 17 12:10:08 CEST 2020


Hope you are well.

I was wondering if there is a function at C level that is equivalent to
mtcars$carb or .subset2(mtcars, "carb").

If I have the index of the column then the answer would be VECTOR_ELT(df,
asInteger(idx)) but I was wondering if there is a way to do it directly
from the name of the column without having to loop over columns names to
find the index?

Thank you
Best regards

	[[alternative HTML version deleted]]

More information about the R-devel mailing list