read_rows: read a specific number of rows from a text file

View source: R/utils.R

read_rowsR Documentation

read a specific number of rows from a text file

Description

read a specific number of rows from a text file

Usage

read_rows(
  input_file = NULL,
  read_delimiter = "\n",
  rows = 100,
  write_2file = ""
)

Arguments

input_file

a character string specifying a valid path to a text file

read_delimiter

a character string specifying the row delimiter of the text file

rows

a numeric value specifying the number of rows to read

write_2file

either "" or a character string specifying a valid output file to write the subset of the input file

Examples


## Not run: 

library(textTinyR)

txfl = read_rows(input_file = 'input.txt', rows = 100)


## End(Not run)

textTinyR documentation built on June 24, 2024, 5:16 p.m.