Learn R Programming

ORscraper (version 0.1.0)

classify_biopsy: Determine the type of biopsy from identifiers

Description

This function analyzes biopsy identifiers and categorizes them into specific types based on a defined rule.

Usage

classify_biopsy(biopsy_numbers)

Value

A character vector representing the type of Sample type: 1, biopsy 2, aspiration 3, cytology

Arguments

biopsy_numbers

Character vector. Identifiers of biopsies to classify.

Examples

Run this code
InputPath <- system.file("extdata", package = "ORscraper")
files <- read_pdf_files(InputPath)
lines <- read_pdf_content(files[1])  # Example with the first file

NB_values <- c()
NB_values <- extract_intermediate_values(NB_values, lines, "biopsia:")

biopsies_identifiers <- classify_biopsy(NB_values)

Run the code above in your browser using DataLab