Learn R Programming

specmine (version 4.0.0)

get_samples_names_dx: Auto-exported function: get_samples_names_dx

Description

Extract sample names from JDX files in a folder.

Usage

get_samples_names_dx(foldername)

Value

A character vector with the sample names extracted from the JDX files in the input folder.

Arguments

foldername

Path to the folder containing JDX files.

Examples

Run this code
.old_wd <- setwd(tempdir())
dir.create("jdx_examples", showWarnings = FALSE)
file.create(file.path("jdx_examples", "sample1.dx"))
file.create(file.path("jdx_examples", "sample2.DX"))
get_samples_names_dx("jdx_examples")
setwd(.old_wd)

Run the code above in your browser using DataLab