Re: [R] how to extract terms from aov

2008-03-31 Thread talepanda
you can access it as a data frame by av3-av2[[1]] then, dimnames(av3)[[1]] gives you the leftmost labels, and also, av3$Df av3$Sum etc, gives the values. str(object) always help you to find out the structure of object and how to access the information. HTH I couldn't find

Re: [R] getting numeric arrays from data frame

2008-04-06 Thread talepanda
try hist(foo[,5]) plot(foo[,c(1,5)]) HTH Currently I invoke: foo - read.table(foo.data, header=TRUE) to read a table into foo Then when I try to plot a histogram out of the 5th column of foo: hist(foo[5]) It fails and it says: Error in hist.default(foo[5]) : 'x' must be

Re: [R] How to pack my stuff into a package (library, collection)?

2008-04-07 Thread talepanda
Though R is indeed cross-platform language, how to build depends on the environment. This is case for most cross-platform software, library, etc. Basically cross-platform means cross-platform for users. When you build packages, you are not user but developer. Rtools will help you.

Re: [R] sorting matrix for rownames

2008-04-07 Thread talepanda
Did you mean: x-matrix(runif(16),4,4,dimnames=list(sample(letters[1:4]),NULL)) x [,1] [,2] [,3] [,4] a 0.5132191 0.09121766 0.9470733 0.6311042 d 0.3621340 0.43193846 0.8536142 0.9286477 c 0.8597558 0.48168800 0.2845544 0.4108180 b 0.4767520 0.72526768 0.2105142