0

Part of a code is ".(test=.N)" When I run it, I get the error "could not find the function "."" I have searched on r documentations and other posts and did not find it. What is the package it belongs to?

user17717499
  • 151
  • 7
  • 2
    It belongs to `data.table` It works only when the object is a data.table i.e. it fails with data.frame. If your object is data.frame or tibble convert to data.table with `as.data.table` or `setDT` – akrun Apr 13 '22 at 18:59
  • Well, without further context, it's not clear. It's most likely the `data.table` package, but any package is free to name a function `.` if they choose. `.` is used as a function in `bquote` for example: `x – MrFlick Apr 13 '22 at 20:02

0 Answers0