Learn R Programming

SOMMD (version 0.1.2)

cat.trj: Concatenate simulations

Description

Function to concatenate two simulations.

Usage

cat.trj(trj1, ...)

Value

A trj object with the simulations concatenated

Arguments

trj1

the first trj file

...

additional trj files

Author

Stefano Motta stefano.motta@unimib.it

Examples

Run this code
# Read the simulations
trj1 <- read.trj(trjfile = system.file("extdata", "HIF2a-MD.xtc", package = "SOMMD"),
  topfile = system.file("extdata", "HIF2a.gro", package = "SOMMD"))
trj2 <- read.trj(trjfile = system.file("extdata", "HIF2a-MD-2.xtc", package = "SOMMD"),
  topfile = system.file("extdata", "HIF2a.gro", package = "SOMMD"))
# Concatenate the simulations
  trj <- cat.trj(trj1, trj2)

Run the code above in your browser using DataLab