search for: carnethi

Displaying 4 results from an estimated 4 matches for "carnethi".

Did you mean: carnethy
2005 Feb 27
1
subsetting data set dimenion problem
(See DAAG book, p. 173, ex. 3) I'm a new user of R, and I'm following the DAAG text. I want to create a subset of the races2000 data frame, but get errors because of a mismatch of values in some columns: > library(DAAG) > attach(races2000) > hills2000 <- races2000[races2000$type == 'hill'] Error in as.matrix.data.frame(x) : dim<- : dims [product 770] do not
2001 May 09
0
Coplot
When I use the hills data in Maindonald's text (below) and apply coplot(time ~ distance | climb, data=hills, overlap=0.0, number=3) the graphs do not appear to line up with the conditional axis climb. Is this a bug or am I missing something as an R newbie? Thanks, Bob Abugov distance climb time Greenmantle 2.5 650 16.083 Carnethy 6.0 2500
2005 Feb 28
0
Re: R-help Digest, Vol 24, Issue 28
You've omitted a comma. races2000 is a data frame, which for purposes of extracting rows behaves like a 2-dimenional object. The following works fine: hills2000 <- races2000[races2000$type == 'hill', ] Additionally, you might like to ponder > type <- races2000[names(races2000)=="type"] > type[1:4] Error in "[.data.frame"(type, 1:4) :
2008 Jan 20
4
read.table: wrong error message? (PR#10592)
--Apple-Mail-44--797532055 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit I believe read.table may report misleading errors. In this example, where a header line in a file has an incorrect number of row names (28 instead of 29), I get the error message "duplicate row.names are not allowed". However, I cannot not find any