powered by
read a specific number of rows from a text file
read_rows(input_file = NULL, read_delimiter = "\n", rows = 100, write_2file = "")
a character string specifying a valid path to a text file
a character string specifying the row delimiter of the text file
a numeric value specifying the number of rows to read
either "" or a character string specifying a valid output file to write the subset of the input file
# NOT RUN { library(textTinyR) # txfl = read_rows(input_file = 'input.txt', rows = 100) # }
Run the code above in your browser using DataLab