Displaying 3 results from an estimated 3 matches for "dupfuns".
2010 Jun 24
1
how can I evaluate a formula passed as a string?
...r "median"):
A B Count of C Median of C
=== === ========== ============
M 45 1 0
M 46 2 1
F 42 2 0.5
blah <- function(df=df, dup="C", aligns=c("A","B"),
dupFuns=c("length(unique(x)","median(x)", dupNames) {
### A function where it will "widen" the df based upon the "aligns" columns,
taking care to summarize the "dup" column using the "dupFuns"
tmp <- aggregate(df[,dup], by=as.list(df[,align...
2011 Apr 06
0
smoothing bathymetry
Dear R Users,
Using the following R-script I created the first image
> require(akima)
> require(spatial)
> dep <- interp(long, lat, depth, xo=seq(1,990,10), yo=seq(1,990,10),
+ extrap=FALSE, ncp=0,duplicate = "mean", dupfun = NULL)
http://r.789695.n4.nabble.com/file/n3431391/Rpics.bmp
Where "long" are x-coordinates between 1 and 1000, "lat" are
2013 Feb 05
2
duplicate data
Hello,
I have a long list of x-, y- and z-data and try to generate a heatmap.
Obviously there are several data with identical x- and y-values. I get
the following error message:
Error in interp.old(x, y, z, xo = xo, yo = yo, ncp = 0, extrap = extrap, :
duplicate data points: need to set 'duplicate = ..'
Unfortunately there seems no help screen on "duplicate". I'd prefer