Skip to content

Extract from class object ltraj.

1 message · Sarah Goslee

#
Hi,

On Tue, Jun 11, 2013 at 12:55 PM, Dylann Kersusan
<kersusan.dylann at gmail.com> wrote:
The code I provided extracts the distances as a vector. What are you
trying to do with them?

ltrj.obj[[1]]['dist']

will return a one-column data frame.

You might like to take some time to read the intro to R documentation,
particularly the parts about subsetting and the difference between [
and [[ to understand why.

Sarah