[R] Taking the Average of a subset of data

2019-02-15 Thread Isaac Barnhart
Hello all, I have another question. I'm working with the following dataset: plotplant leaf_number sen_score plot_laiplant_lai lai_score leaf_num 104 5 1 90 104 1 82 1 104 5 2 90 104 1 167

Re: [R] Finding the Mean of a Specific Set of Columns

2019-02-14 Thread Isaac Barnhart
Thanks for the help! Isaac From: Marc Schwartz Sent: Thursday, February 14, 2019 11:05:23 AM To: Isaac Barnhart Cc: R-help Subject: Re: [R] Finding the Mean of a Specific Set of Columns On Feb 14, 2019, at 9:31 AM, Isaac Barnhart wrote: > > I am

[R] Finding the Mean of a Specific Set of Columns

2019-02-14 Thread Isaac Barnhart
I am having trouble finding the mean of a specific part of my dataset. Here is a sample of it: plot lai leaf 1 104 82 1 2 104 167 2 3 104 248 3 4 104 343 4 5 104 377 5 6 105 64 1 7 105 139 2 8 105 211 3 9 105 296 4 10 105 348 5 11 106 94 1 12 106 167 2 13 106 243 3 14 106 281 4 15 106 332 5 16 10