Hello,
To average the values of z in case of duplicated x and y, you can use
s2 <- aggregate(z ~ x + y, data = sorpe, FUN = mean)
Hope this helps,
Rui Barradas
Em 05-02-2013 07:06, Richard Müller escreveu:
Hello,
I have a long list of x-, y- and z-data and try to generate a heatmap.
Obviou
Hello,
From ?interp.old
duplicate
character string indicating how to handle duplicate data points.
Possible values are
"error"
produces an error message,
"strip"
remove duplicate z values,
"mean","median","user"
calculate mean , median or user defined function (dupfun) o
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 'dupli
#or
join(DF3,DF2,type="right")
Hope this helps
A.K.
- Original Message -
From: jeff6868
To: r-help@r-project.org
Cc:
Sent: Wednesday, July 18, 2012 4:21 AM
Subject: [R] duplicate data between two data frames according to row names
Hi everybody.
I'll first explain my p
"merge" is enough for me, thanks!
I was thinking about a loop, or a function like "grep", or maybe another
function.
I'll have to think easier next time!
Thanks again!
--
View this message in context:
http://r.789695.n4.nabble.com/duplicate-data-between-two-data-frames-according-to-row-names-tp4
Hi Jeff,
looks like a job for ?rbind and ?merge
merge(rbind(DF1,DF2),DF3)
hth
Am 18.07.2012 10:21, schrieb jeff6868:
> Hi everybody.
>
> I'll first explain my problem and what I'm trying to do.
> Admit this example:
> I'm working on 5 different weather stations.
> I have first in one file 3 o
Hi everybody.
I'll first explain my problem and what I'm trying to do.
Admit this example:
I'm working on 5 different weather stations.
I have first in one file 3 of these 5 weather stations, containing their
data. Here's an example of this file:
DF1 <- data.frame(station=c("ST001","ST004","ST00
NDC/jshipman wrote:
Hi,
I am new to R plot. I am trying to increase the data point
observation when duplicate data points exist
xy
110
110
23
45
9 8
in the about example 1, 10 would be displayed larger than the other
data points. Could someone give me some ass
On 7/15/2009 9:56 PM, Carl Witthoft wrote:
> If you want to take the second approach, it can be relatively easily
> generalized by calculating the cex values based on the count of ordered
> pairs in the original dataset.
>
> Here's a data set:
>> xy
> x y
> [1,] 1 4
> [2,] 1 5
> [3,] 2 3
> [
If you want to take the second approach, it can be relatively easily
generalized by calculating the cex values based on the count of ordered
pairs in the original dataset.
Here's a data set:
> xy
x y
[1,] 1 4
[2,] 1 5
[3,] 2 3
[4,] 3 3
[5,] 4 5
[6,] 5 2
[7,] 1 4
[8,] 2 3
Here's the same
Alternatively, you could make use of transparency (on some devices), or use
ggplot2 to map the number of observations to the point size,
d =
read.table(textConnection("
x y
1 10
1 10
2 3
4 5
9 8
"),head=T)
library(ggplot2)
# transparency
qplot(x, y, data=d, al
On 7/15/2009 2:19 PM, NDC/jshipman wrote:
> Hi,
> I am new to R plot. I am trying to increase the data point
> observation when duplicate data points exist
>
> xy
> 110
> 110
> 23
> 45
> 9 8
>
>
> in the about example 1, 10 would be displayed larger than the other
>
LARC/J.L.Shipman/jshipman wrote:
>
> I am new to R plot. I am trying to increase the data point
> observation when duplicate data points exist
>
> x y
> 1 10
> 1 10
> 2 3
> 4 5
> 9 8
>
> in the about example 1, 10 would be displayed larger than the other
>
Hi,
I am new to R plot. I am trying to increase the data point
observation when duplicate data points exist
x y
1 10
1 10
2 3
4 5
9 8
in the about example 1, 10 would be displayed larger than the other
data points. Could someone give me some assistan
14 matches
Mail list logo