Re: [R] duplicate data

2013-02-05 Thread Rui Barradas
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

Re: [R] duplicate data

2013-02-04 Thread Pascal Oettli
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

Re: [R] duplicate data between two data frames according to row names

2012-07-18 Thread arun
Hi, You could use "merge", "join" etc. merge(DF3,DF2)  # station lat lon data #1   ST002  41   2    3 #2   ST003  42   3    7 library(plyr)  join(DF3,DF2,type="inner") Joining by: station #  station lat lon data #1   ST002  41   2    3 #2   ST003  42   3    7 #or join(DF3,DF2,type="right") Ho

Re: [R] duplicate data between two data frames according to row names

2012-07-18 Thread jeff6868
"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

Re: [R] duplicate data between two data frames according to row names

2012-07-18 Thread Eik Vettorazzi
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

Re: [R] duplicate data points on a line graph

2009-07-16 Thread Jim Lemon
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

Re: [R] duplicate data points on a line graph

2009-07-16 Thread Chuck Cleland
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 > [

Re: [R] duplicate data points on a line graph

2009-07-15 Thread baptiste auguie
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

Re: [R] duplicate data points on a line graph

2009-07-15 Thread Chuck Cleland
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 >

Re: [R] duplicate data points on a line graph

2009-07-15 Thread Dieter Menne
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 >