showlines: showlines

Description Usage Arguments Value Examples

View source: R/showlines.R

Description

List lines containing searchterms from a file from the output of scriptsearch().

Usage

1

Arguments

data

The data frame output from scriptsearch().

n

The index of the file to be searched.

open

Logical option for opening the selected file.

Value

Table with the line number and first 50 characters of each line that contains searchterms.

Examples

1
2
3
4
data <- scriptsearch(".", "text")
showlines(data, 1)

showlines(data, 2, open = FALSE)

carlos-r-git/scriptsearch documentation built on Sept. 1, 2020, 6:38 p.m.