read_xvg: read xvg files

View source: R/read_functions.R

read_xvgR Documentation

read xvg files

Description

read one or more 'GROMACS'-generated xvg files

Usage

read_xvg(xvg_files, skip_comments = TRUE)

Arguments

xvg_files

character vector of xvg file paths

skip_comments

logical indicating whether to skip comment lines (default: TRUE)

Value

Named list containing xvg data, using filenames (without extension) as keys

Examples


library(xvm)
# Retrieve the path to the example file included in the package:
rmsd_file_path <- system.file("extdata/rmsd.xvg", package = "xvm")
rmsd_data <- read_xvg(rmsd_file_path) # read the xvg file using read_xvg() function
names(rmsd_data)


xvm documentation built on June 8, 2025, 10:37 a.m.