Skip to content
Back to formatted view

Raw Message

Message-ID: <1384638589297-4680579.post@n4.nabble.com>
Date: 2013-11-16T21:49:49Z
From: SCRIPTHAM
Subject: Calculate Range

Hi

My R version is the current version as at 15 Nov 2013.

I have tried to calculate range using tapply() with FUN=range.
tapply() returns two fields, the ID field and a field of two text items one
is the maximum and the other is the minimum.
I take as the difference max - min, does R use a different term for range in
tapply?

I have also tried
aggregate() with Fun=range, with Fun=min and FUN=max 
and they also gave problems.

What is the best route to calculate ranges for groups within a data frame.

Thanks.
Scriptham.






--
View this message in context: http://r.789695.n4.nabble.com/Calculate-Range-tp4680579.html
Sent from the R help mailing list archive at Nabble.com.