Skip to contents

Atom positions

Usage

positions(frame)

# S3 method for class 'dseams_frame'
positions(frame)

Arguments

frame

A dseams_frame.

Value

positions() returns a numeric matrix with one row per atom and columns x, y, z in the units of the file.

Examples

frame <- read_frame(dseams_example("ice1h.lammpstrj"), type = -1L)
head(positions(frame))
#>          x    y     z
#> [1,]  9.09 1.83 12.41
#> [2,] 13.10 4.47 10.10
#> [3,] 14.33 5.39 12.39
#> [4,] 13.05 4.57 14.69
#> [5,] 10.46 0.91 14.62
#> [6,] 10.43 5.43 14.64