Learn R Programming

phenology (version 4.0.4)

insidesearch: Search a string within files of a folder #'

Description

Search for a string inside the files of a folder

Usage

insidesearch(path = ".", pattern = "*.R", ...,
  search = stop("A text to be searched for is necessary"))

Arguments

path
Path of the folder to search
pattern
Pattern for file names to searcg
...
Options for readLines(), example warn = FALSE
search
String to search in files

Value

  • Return a vector with filenames

Details

insidesearch Search a string within files of a folder

Examples

Run this code
library(phenology)
# Read a file with data

Run the code above in your browser using DataLab