similar to: Intersect 2 lists+bring extra columns

Displaying 20 results from an estimated 2000 matches similar to: "Intersect 2 lists+bring extra columns"

2002 Jul 09
1
strip setuid/setgid bits on backup (was Re: small security-related rsync extension)
I vote for the consistent, complete log format as a solution to this sort of thing, and those who need to take non-rsync related actions based on what rsync did can write their own applications to do so. People keep coming up with some particular thing they need done for their own application, and want rsync to do that too. rsync is a tool to make one thing exactly like another. It is not
2006 Mar 16
2
Arrays of Model Objects, Intersections, Object Identification... ?
Hi all, Hope you can help me with understanding how Ruby / Rails treats arrays full of objects. Let''s say I have to arrays of objects. Both are the same kinds of objects. tomatoes = Fruit.find(:all, :conditions => [ ''tomato = ?'', true], :limit => 10) fruits = Fruit.find(:all, :limit => 10) And I want to create an array of these objects called @my_fruits,
2003 Feb 04
2
iTunes / quick time
Any idea if/when there will be official ogg support for iTunes or Quick Time for Mac ? The dual G4s have this stupid thing where if we stick the quick time components on the Mac and it screws them up, or the Mac gets screwed later, then it nacks up the warranty or sumthin. Basic point is we need official quicktime or iTunes support so we can play Vorbis on the Mac!!! Anyone heard anything on
2009 Dec 02
3
documentation of intersect() on string vector and num vector and on duplicated elements
> intersect(c(1,3,2),c('1','3')) [1] "1" "3" Apparently, intersect() treats num as string. But this is not documented in the help. Could somebody add it in the future version of R? Also according to the help, the argument should not have duplicated elements. But I tried the following example, it seems that it doesn't matter where there are duplicated
2010 May 20
1
intersect() without discarding duplicates?
Hi all, The ?intersect entry kindly points out that it discards duplicate entries. I'm looking, however, to get the intersection while KEEPING duplicate entries, and there are no instructions on how to accomplish this using intersect(). Does anybody have any idea how this might be done, or am I going to need to program something from scratch (something like ordering the vectors and then
2011 Oct 25
1
question regarding intersect function
Hi I have probably a very simple question but I'm going crazy trying to find the solution. I have two data.frames with headers and I'm doing an intersection between them by names, such that the intersected data.frames are returned by: df1[intersect(names (df1), names(df2))] and the same for df2 Now, I want to have all the opposite data that did not intersect. I tried to do:
2005 Jun 03
1
ts.intersect a multivariate and univariate ts
This seems like a FAQ, but I can't figure it out. I have a mv ts object: R > tsp(pg) [1] 1982 2003 1 R > dim(pg) [1] 22 12 and a univariate ts: R > tsp(rw) [1] 1690 1996 1 Yet, when I try to intersect them: R > tsp(ts.intersect(rw, pg)) [1] 1982 2176 1 the process goes awry. How to I get rw and pg to be one ts that runs from 1982 to 1996 and has 13 univariate time
2007 Nov 14
1
intersect character
hello, can anyone help me concatenate a string containing the intersect character? i need to use it in a figure legend. thanks, kevin
2007 Mar 29
0
(PR#9589) 'union' does not handle factors while 'intersect'
This is not a bug, nor is the subject line true: both do accept factors but what they do with factors is undocumented. From the help (not 'man') page Performs *set* union, intersection, (asymmetric!) difference, equality and membership on two vectors. ^^^^^^^ so it is not said to work on factors. I disagree that what intersect() for
2009 Aug 10
1
index of intersect()
Hi all, Is there a way to get the index of elements in intersect(x,y) where x and y are vectors with few common elements. Appreciate your response. Praveen Surendran. [[alternative HTML version deleted]]
2010 Mar 18
1
Intersect, Union of date/time ranges
I have 2 sets of data which defines the start and end of date/time periods. I want to be able to obtain the following: 1) The intersect of those 2 sets of date/time ranges i.e. return start/end date/time ranges where both sets overlap 2) The union of those 2 sets of date/time ranges i.e. return the start/end date/time ranges which are in 1 or both sets Is there anything that is currently able
2005 Sep 21
3
ts.intersect bug?
This code gives an error: a <- ts(1:10, start=0, freq=10) b <- ts(1:10, start=1, freq=10) ts.intersect(a,b) This one works normally (and correctly): a <- ts(1:10, start=0) b <- ts(1:10, start=1) ts.intersect(a,b) Antonio, Fabio Di Narzo. P.S. How to switch off italian error messages to post on r-help? > version _ platform i386-pc-mingw32 arch i386 os
2007 May 06
1
intersect of 2 data frames
Greetings! I am a new user of R. The only one in my department, all others use SPSS. I have two data sets of students with test scores, pretest and posttest. The first column StuNum and then columns of scores. The problem is that the lists are slightly different not all students are in both data sets. So I did: intersect(pretest$StuNum, posttest$StuNum) -> common.id At this point I need
2003 Aug 06
1
contour lines intersect
Hi, Sorry if this is already known... contour() sometimes draws contour lines that intersect. Is there a temporary fix? A dataset which causes problems is at http://www.maths.uwa.edu.au/~adrian/dumpdata.R If you try just source("dumpdata.R") image(huh) contour(huh) the 100 x 100 matrix 'huh' contains an hourglass-shaped region of values around 0.8. The contour plot
2007 Apr 30
1
intersect filled.contour and polygon
Dear R users; Is there any way to intersect a filled contour image and a polygon? My problem is that I want to create a kriging map and the boundaries of my map are given by the coordinates of the polygon. So far I can superompose the polygon in the filled.contour image but I don't know how to get rid of the contour image outside of the polygon boundaries. Any hint will be appreciated PM
2013 Jul 23
0
setdiff y/o intersect para diferencias entre vectores
Hola Marcos. Yo probaría algo del estilo a esto.... Intersecc<-v1[v1%in%v2] Un saludo, _____________________________ Miguel Ángel Rodríguez Muíños Dirección Xeral de Innovación e Xestión da Saúde Pública Consellería de Sanidade Xunta de Galicia http://dxsp.sergas.es -----Mensaje original----- De: r-help-es-bounces en r-project.org [mailto:r-help-es-bounces en r-project.org] En nombre
2013 Mar 20
2
Pattern match
Hello again, in the help page of grep() function, it is written that pattern: character string containing a regular expression (or character string for fixed = TRUE) to be matched in the given character vector. Coerced by as.character to a character string if possible. If a character vector of length 2 or more is supplied, the first element is used with a warning. Missing values are allowed
2009 Dec 15
1
shading between to curves that intersect repeatedly
Dear R-Community, I have the following problem and was wondering whether someone could help me out. I have a number of time series of discharge (up to 3000 data points in some cases) which I would like to compare on the same line plot by shading the area between some of them. Can anyone tell me how to do that? I have tried to fiddle around with the polygon function, but the curves interact a
2010 May 12
3
intersect
Hi there, how can I test every element in a vector whether appears in another vector? such as a<-c("aa", "bb", "ff", "cc") b <-c("oo","jj","bb","cc") somefunction(a,b) gives [False, True, False, True] thanks yuan jian [[alternative HTML version deleted]]
2011 Dec 22
1
Union/Intersect two continuous sets
Dear All, It is my first time using this mail list to post a question. And I sincerely hope that this will not bother any subscribers. So far as I know, there are functions like union( ), which can help to combine two sets of discrete data. But what if the data sets are with continuous data. For instance, I got three sets like [2, 4], [5, 6], [3.4, 5.5]. I wonder if there is a quick solution to