Find function in package

find_function_in_package(f)

Arguments

f

function or character with name of the function

Value

character name of the package that contains the function

Examples

package_name <- find_function_in_package(t.test)
package_name <- find_function_in_package("t.test")