smartpink111 at yahoo.com
Mon Apr 22 18:16:19 CEST 2013
From your excel sheets, it looks like for the step1, you were just taking only the "Survey Time" of the first rows of unique Start_Day for each Location_name.
Step2 results looks the same as "res2"
If this is the case:
# Location_name Survey_Time
#1 1_f3p1_La_Campana 46.4
#2 2_f4p1_La_Campana 69.5
#3 79_f2p1_Acetuna 36.4
# Location_name Survey_Time SPEC_CODE AI RA
#1 1_f3p1_La_Campana 46.4 Buzz 20 4.3103448
#2 1_f3p1_La_Campana 46.4 Cencen 20 4.3103448
#3 1_f3p1_La_Campana 46.4 Eptfur 215 46.3362069
#4 1_f3p1_La_Campana 46.4 Frag 3 0.6465517
#5 1_f3p1_La_Campana 46.4 Molspp 22 4.7413793
#6 1_f3p1_La_Campana 46.4 Myoele 1 0.2155172
# 44 5
----- Original Message -----
From: Bruce Miller <batsncats at gmail.com>
To: arun <smartpink111 at yahoo.com>
Sent: Monday, April 22, 2013 11:32 AM
Subject: Re: More
Attached are two Excel sheets that I manually did what I am hoping I can automate in R for the larger data sets.
These use the same 3 locations and data I sent earlier.
Step 1 sums the total survey time for each location then step 2 sums the AI values for he SPEC_CODE by location.
Then the calculation of Summed AI value/Summed Survey time can be completed for each location and SPEC_Code.
Hopefully this clarifies it more.
-- Bruce W. Miller, Ph.D.
Neotropical Bat Projects
11384 Alpine Road
Stanwood, Mi. 49346
Phone (231) 679-6059
More information about the R-help