Re: [R] Subset returning unexpected result

2009-10-16 Thread Peter Ehlers
Steve Murray wrote: Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Bill=2C It seems to be 'character' - odd...! Not really very "odd". I'll wager that your data was originally recorded in Excel or equivalent and that the column

Re: [R] Subset returning unexpected result

2009-10-15 Thread Steve Murray
Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Bill=2C It seems to be 'character' - odd...! > str(int1901$Latitude) =A0chr [1:61537] "5.75" "6.25" "6.75" "7.25" "7.75" "8.25" ... Thanks again=2C Steve > What does str(int1901)

Re: [R] Subset returning unexpected result

2009-10-15 Thread David Winsemius
On Oct 15, 2009, at 11:39 AM, Steve Murray wrote: Dear all, I am attempting to subset a data frame based on a range of latitude values. I want to extract the values of 'interception' where latitude ranges between 50 and 60. I am doing this using the following code, yet it doesn't return

Re: [R] Subset returning unexpected result

2009-10-15 Thread jim holtman
It would be useful to also post the 'str(int1901)' so that we could see the structure of the dataframe. Is Latitude by chance a 'factor'? You could also put a subset with the data by doing: dput(int1901) On Thu, Oct 15, 2009 at 11:39 AM, Steve Murray wrote: > > Dear all, > > I am attempting to

Re: [R] Subset returning unexpected result

2009-10-15 Thread Steve Murray
<77eb52c6dd32ba4d87471dcd70c8d70001f11...@na-pa-vbe03.na.tibco.com> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Dear Bill and all=2C Yep you were right - for some strange reason (I'm not sure how...)=2C the l= atitude data were o

[R] Subset returning unexpected result

2009-10-15 Thread Steve Murray
Dear all, I am attempting to subset a data frame based on a range of latitude values. I want to extract the values of 'interception' where latitude ranges between 50 and 60. I am doing this using the following code, yet it doesn't return the results I expected: > test <- subset(int1901, Lati