find_header_line: Find the Header Line in a File

View source: R/prepare.R

find_header_lineR Documentation

Find the Header Line in a File

Description

This function scans a file to locate the first line containing a specific keyword, such as 'probeset_id'. It is useful for identifying the starting point of data in files with headers or metadata.

Usage

find_header_line(summary_file, word = "probeset_id", max_lines = 6000)

Arguments

summary_file

The path to the file to be scanned.

word

The keyword to search for in the first column. Default is "probeset_id".

max_lines

The maximum number of lines to scan. Default is 6000.

Value

The line number where the keyword is found.


Qploidy documentation built on June 8, 2025, 10 a.m.