Learn R Programming

SOMMD (version 0.1.2)

stride.trj: Stride a trj

Description

Apply a stride to the frame of a trj object to reduce the number of frames

Usage

stride.trj(trj, stride)

Value

An object of class trj with a frame every stride

Arguments

trj

a trj object.

stride

the stride to apply to the trajectory

Author

Stefano Motta stefano.motta@unimib.it

Examples

Run this code
# Read the simulation
trj <- read.trj(trjfile = system.file("extdata", "HIF2a-MD.xtc", package = "SOMMD"),
  topfile = system.file("extdata", "HIF2a.gro", package = "SOMMD"))
# keep a frame every 2 frame
trj_strd <- stride.trj(trj, 2)

Run the code above in your browser using DataLab