Skip to content
Back to formatted view

Raw Message

Message-ID: <f8e6ff050904010900q5cf9f9b4nc6a12cb281a20a88@mail.gmail.com>
Date: 2009-04-01T16:00:46Z
From: Hadley Wickham
Subject: Calculating First Occurance by a factor
In-Reply-To: <22829525.post@talk.nabble.com>

> I tried messing with the line df$FixTime[which.min(df$FixInx)] changing it
> to df[which.min(df$FixInx)] or adding new lines with the additional columns
> that I want to include, but nothing seemed to work. I'll admit I only have a
> mild understanding of what is going on with the function .fun. :-)

You probably want:

df[which.min(df$FixInx), ]

Hadley

-- 
http://had.co.nz/