type = 0 guesses oxygen (LAMMPS type 2, otherwise type 1). A positive
type keeps that species. A negative type keeps every atom.
Value
read_frame() returns an object of class dseams_frame.
nframes() returns the number of LAMMPS timesteps; an XYZ file counts
as one. print() and summary() return the frame, invisibly.
Details
print() reports the frame index and the atom count. summary() also
reports the file and the type filter. Both return the frame, invisibly.
Examples
path <- dseams_example("ice1h.lammpstrj")
nframes(path)
#> [1] 1
frame <- read_frame(path, type = -1L)
frame
#> dseams frame 1 atoms 128