Search Archives
Search tips
from:Name
Search by author name, e.g. from:Duncan Murdoch
"exact phrase"
Match an exact phrase
word1 word2
Match messages containing both words
Date range
Use the date pickers to filter results to a time period
Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.
Greg Snow: > Look at the pwr package, it has functions for 2 samples of different > sizes. > > Hope this helps, Great! Thanks. -- Karl Ove Hufthammer
Dimitris Rizopoulos: > dat[!duplicated(dat$Id), ] Very elegant. I didn't know about 'duplicated()' before now. Seems like a very useful function. -- Karl Ove Hufthammer
Peter Ehlers wrote: > It is hardly R's fault that Excel users routinely commit > crimes against data. A ?fortune? candidate? -- Karl Ove Hufthammer
Robert J. Hijmans wrote: > The makePoly function in 'geosphere' does this. Robert Great! That?s *exactly* what I was looking for. Thanks! -- Karl Ove Hufthammer
Ken-JP: > Do you mean I should favor: > > rnorm(n, 0, 1) * b + a > > over > > rnorm(n, a, b) No, as I said, they give exactly the same results. -- Karl Ove Hufthammer
On Tue, 9 Mar 2010 05:37:52 -0800 (PST) ManInMoon <xmoon2000 @googlemail.com> wrote: > How can I generate a vector of differences between each elemtn of an vector? diff(x) -- Karl Ove Hufthammer
Dan Abner wrote: > I am attempting to use the %in% operator with the ! to produce a NOT IN > type of operation. Just use the ?%nin?? operator in the ?Hmisc? package. :-) -- Karl Ove Hufthammer
Jun Shen: > summarize() can apply multiple functions to one column No, summarize() can apply multiple functions to *multiple* columns (i.e., matrices). That?s one of the advantages of summarize() over aggregate(). -- Karl Ove Hufthammer
On Tue, 2 Mar 2010 15:13:54 -0500 Ralf B <ralf.bierig at gmail.com> wrote: > 1) What are your 3 most useful R package? and plyr ggplot2 lattice -- Karl Ove Hufthammer
On Sun, 15 Nov 2009 19:52:48 +0100 (CET) Roger Bivand <Roger.Bivand at nhh.no> wrote: > Do use readShapeSpatial() (or better readOGR() in rgdal) Why (or how) is readOGR better? -- Karl Ove Hufthammer
Wittner, Ben, Ph.D.: > Is there a way to display an image (such as is done with the function > image()) in a grid package viewport? Yes. Use levelplot() from the lattice package. -- Karl Ove Hufthammer
On Thu, 29 Oct 2009 09:05:22 -0400 Duncan Murdoch <murdoch at stats.uwo.ca> wrote: > You want the unary - operator. For example, > > -x It even has a nice help page: ?"-" -- Karl Ove Hufthammer
On Tue, 2 Mar 2010 11:51:39 +0100 frederik vanhaelst <frederik.vanhaelst at gmail.com> wrote: > How could i generate random real numbers between 0 en 2*pi? Ten such numbers from the uniform distribution: 2*pi*runif(10...
In article <80b45a8c0910192051nd558023p9b76566464fc3fbf at mail.gmail.com>, remkoduursma at gmail.com says... > I think it is a bug. Apparently plot.POSIXct calls axis.POSIXct for > both y (correct) and x (incorrect) axes: Thanks. Reported as bug #14016. -- Karl Ove Hufthammer
Powell, Jeff: > I would like to be able to do something like the following: > nms <- c("en1", "en2", "en3", ...) > > for(i in nms) i <- new.env(parent = .GlobalEnv) Try for(i in nms) assign(i, new.env(parent = .GlobalEnv)) -- Karl...
Deepayan Sarkar: >> Is there a way to decrease this space/margin? I could not find any >> information about it in the documentation. > > I think you are looking for the 'zoom' argument (described under '...'). Thank you. That worked like a charm...
Karl Ove Hufthammer skreiv: > The data in the ?maps? package are probably buggy. Use the vector data > from http://www.naturalearthdata.com/ instead. Or these: http://nationalatlas.gov/mld/countyp.html -- Karl Ove Hufthammer E-mail: karl at huftis.org...
On Tue, 1 Dec 2009 14:48:04 +1100 Remko Duursma <remkoduursma at gmail.com> wrote: > any(duplicated(c(1,2,2))) or anyDuplicated(c(1,2,2)) which is slightly more efficient. -- Karl Ove Hufthammer
Woo wrote: > So I done it by sum(B<A^2), but I'm not sure if there is anther way to > calculate the number of cases in the distribution or what I have done is > fine What you have...
On Fri, 30 Oct 2009 10:28:49 +0100 Karl Ove Hufthammer <karl at huftis.org> wrote: > $ (pos=which(order(abs(iris$Sepal.Length-x)) %in% 2:6)) This should of course be: (pos=order(abs(iris$Sepal.Length-x...
Can't find what you're looking for? Try searching with Google .