Learn R Programming

fixr (version 0.2.0)

find.packages_path: Find the R Packages to Import a File Format

Description

This function takes a file path as input and searches the CRAN repository for R packages that can import the file format.

Usage

find.packages_path(file_path)

Value

A character string that lists the R packages that can be used to import the file format of the input file.

Arguments

file_path

A character string specifying the file path of the file to be imported.

Examples

Run this code
# Search for packages that can import a CSV file
find.packages_path("sample.csv")

# Search for packages that can import a JSON file
find.packages_path("sample.json")

Run the code above in your browser using DataLab