Skip to content
Prev 3883 / 7420 Next

Extract from class object ltraj.

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
Message-ID: <CAM_vjukqF8L5PigFAimD-CKpiRhgOvzJS1o8L7CoiTpTVPJe3Q@mail.gmail.com>
In-Reply-To: <CAEcqiB-JhP07+QqDAPQ2bOVpiVoCUyL=24xFfMSN4hJMuqD5MQ@mail.gmail.com>