Learn R Programming

xvm (version 0.0.2)

read_xvg: read xvg files

Description

read one or more 'GROMACS'-generated xvg files

Usage

read_xvg(xvg_files, skip_comments = TRUE)

Value

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

Arguments

xvg_files

character vector of xvg file paths

skip_comments

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

Examples

Run this code
# \donttest{
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)
# }

Run the code above in your browser using DataLab