How would I find list of primitive functions in R meant for historical or efficiency reasons?
Primitive functions are the ones that provide links between R code and the C code used to write R.
This will get you the names of all R functions that wrap calls to .Primitive():
nms <- names(methods:::.BasicFunsList) ## ?.BasicFunsList for more info
length(nms)
# [1] 192
c(head(nms, 8), tail(nms, 8))
# [1] "$" "$<-" "[" "[<-"
# [5] "[[" "[[<-" "%*%" "xtfrm"
# [9] "switch" "tracemem" "unclass" "untracemem"
# [13] "while" "{" "||" "~"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With