Skip to content

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.

296 results for “from:Karl Ove Hufthammer”

power.t.test formula
Karl Ove Hufthammer · Apr 25, 2009 · r-help

Greg Snow: > Look at the pwr package, it has functions for 2 samples of different > sizes. > > Hope this helps, Great! Thanks. -- Karl Ove Hufthammer

Aggregate by First case
Karl Ove Hufthammer · May 30, 2008 · r-help

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

CSV value not being read as it appears
Karl Ove Hufthammer · Jan 17, 2011 · r-help

Peter Ehlers wrote: > It is hardly R's fault that Excel users routinely commit > crimes against data. A ?fortune? candidate? -- Karl Ove Hufthammer

Add interpolated coordinates to SpatialPolygons
Karl Ove Hufthammer · Sep 9, 2010 · r-sig-geo

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

rnorm() converted to daily
Karl Ove Hufthammer · Apr 17, 2009 · r-help

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

%in% operator - NOT IN
Karl Ove Hufthammer · May 9, 2011 · r-help

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

Deltas or changes
Karl Ove Hufthammer · Mar 9, 2010 · r-help

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

SUM,COUNT,AVG
Karl Ove Hufthammer · Apr 7, 2009 · r-help

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

Three most useful R package
Karl Ove Hufthammer · Mar 3, 2010 · r-help

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

newbie questions
Karl Ove Hufthammer · Nov 16, 2009 · r-sig-geo

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

image() for grid package?
Karl Ove Hufthammer · May 29, 2008 · r-help

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

Invert the sign of a number
Karl Ove Hufthammer · Oct 29, 2009 · r-help

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

Random real numbers
Karl Ove Hufthammer · Mar 2, 2010 · r-help

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...

Possible bug in plot.POSIXct regarding x axis
Karl Ove Hufthammer · Oct 19, 2009 · r-help

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

Creating a series of new environments
Karl Ove Hufthammer · May 30, 2008 · r-help

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...

Reducing space around lattice wireframe plots
Karl Ove Hufthammer · Jun 2, 2008 · r-help

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...

Error using unionSpatialPolygons
Karl Ove Hufthammer · Sep 3, 2012 · r-sig-geo

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...

Is there a function to test if all the elements in a vector are unique
Karl Ove Hufthammer · Nov 30, 2009 · r-help

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

please hep in uniform distribution
Karl Ove Hufthammer · Feb 8, 2011 · r-help

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...

Applying a function on n nearest neighbours
Karl Ove Hufthammer · Oct 30, 2009 · r-help

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 .