Skip to content

Unique observations

3 messages · John Lipkins, jim holtman, David Winsemius

#
shouldn't the first observation for Tree1 be " Tree1  leaves  01-01-2009"?
+  Tree1  leaves  01-01-2009
+  Tree2  roots  13-09-2009
+  Tree1  roots  24-10-2009"), header=TRUE)
Tree disease       date
Tree1 Tree1  leaves 01-01-2009
Tree2 Tree2   roots 13-09-2009
On Wed, Nov 25, 2009 at 9:44 AM, John Lipkins
<john.lipkins at googlemail.com> wrote:

  
    
#
On Nov 25, 2009, at 9:44 AM, John Lipkins wrote:

            
I think the function you will need include:

?as.Date  #to get the date field into sortable form
?order    #as in treedat2 <- treedat[ order(treedat$dt, treedat$Tree), ]
?duplicated  # as in treedat2[ !duplicated(treedat2(Tree), ]

--

David Winsemius, MD
Heritage Laboratories
West Hartford, CT