Re: How to take mean of specific data?
- To: mathgroup at smc.vnet.net
- Subject: [mg112924] Re: How to take mean of specific data?
- From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
- Date: Wed, 6 Oct 2010 03:15:08 -0400 (EDT)
- References: <i8erg6$ht7$1@smc.vnet.net>
Assuming the values are in a one-dimensional list called data you could calculate this by: Mean[data[[18000 ;; 67500]] ] or Mean[Take[data, {18000 , 67500}]] Cheers -- Sjoerd On Oct 5, 11:35 am, cubsfan334 <cubsfan... at gmail.com> wrote: > Hi, > > I have a text file with over 100,000 different values. After > importing this data into Mathematica, I'd like to have the program > average specific parts of this data. For example, I'd like to find > the mean of values 18,000 to 67,500. Is there some variation of the > 'Mean' command or other that would do this? > > Thanks!!