similar to: index of intersect()

Displaying 20 results from an estimated 20000 matches similar to: "index of intersect()"

2009 Oct 14
2
Getting indeices of intersecting elements.
Hi, Is there a command to get the indices of intersecting elements of two vectors as intersect() will give the elements and not its indices. Thanks in advance. Praveen Surendran School of Medicine and Medical Sciences University College Dublin Belfield, Dublin 4 Ireland. [[alternative HTML version deleted]]
2009 Jul 08
5
R regular expression to extract words with the query string.
Hi, Is there a way in R to get the string which matches the expression, where the expression is a substring of the parent string. Lets say, I have $i <- "transcript:ENST0000112334 pid:ENSP000012345" What I need is the string "pid:ENSP000012345" from $i using the query "ENSP". Appreciate your comments. Praveen Surendran School of Medicine and
2009 Oct 22
2
Replacing multiple elements in a vector !
Hi, I have a vector with elements rs.id=c(''rs100'',''rs101'',''rs102'',''rs103'') And a dataframe ''snp.id'' 1 SNP_100 rs100 2 SNP_101 rs101 3 SNP_102 rs102 4 SNP_103 rs103 Task is to replace
2010 May 18
1
Getting dates in an SPSS file in right format.
Dear all, I am trying to read an SPSS file into a data frame in R using method read.spss(), sample <- read.spss(file.name,to.data.frame=TRUE) But dates in the data.frame ''sample'' are coming as integers and not in the actual date format given in the SPSS file. Appreciate if anyone can help me to solve this problem. Kind Regards, Praveen Surendran 2G, Complex
2012 Oct 29
3
Opening SAS file using read.sas7bdat() function in sas7bdat library.
Hi, I have a file in .sas7bdat format. I tried to open this file using read.sas7bdat() function. This gave me an error - "Error in read.sas7bdat("bnp_genetic.sas7bdat") : unknown host X64_7PRO". Could someone tell me what this error means? Thank you, Praveen. [[alternative HTML version deleted]]
2009 Jun 19
1
Alternate ways of finding number of occurrence of an element in a vector.
Hi, I have a vector "v" and would like to find the number of occurrence of element "x" in the same. Is there a way other than, sum(as.integer(v==x)) or length(which(x==v)) to do the this. I have a huge file to process and do this. Both the above described methods are pretty slow while dealing with a large vector. Please have your comments. Praveen
2009 Jul 16
2
Finding missing elements by comparing vectors
Hi, Is there a function in R to do a-b where a and b are two non-numeric sets (or intersection complement of these two sets). Kind Regards, Praveen. [[alternative HTML version deleted]]
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
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:
2013 Sep 01
1
Intersect 2 lists+bring extra columns
Hi everyone, I am pretty new to R, so be patient. I am trying to intersect 2 columns and in the rows that intersect, I want information from the 3rd column to be brought with it. I think it will be easier to explain with an example example.csv <http://r.789695.n4.nabble.com/file/n4675136/example.csv> . In my example, I have a reference list of fruit (first column), and my fruit of
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
2008 May 28
1
Multiple Intersections
Hi all, I don't know if this is the correct venue for this question, but I am sure that someone will correct me if I am in the wrong list. I have been searching throughout R for a function that can find the intersection of multiple sets of "things". Say for instance, I have a list of $n$ character vectors and would like to find the intersection of all $k$ subsets. I don't
2015 Jun 07
2
Curious problem with NAT
Ashwin Surendran <Ashwin.Surendran at now-health.com> schrieb: > Have you tried NAT=force_rport ? OK, tried... I can transmit from my phone (aka: I hear my voice on another phone), but I'm not able to receive data (aka: I cannot hear what I say on the other phone). Other suggestion? Thanks Luca Bertoncello (lucabert at lucabert.de)
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
2009 Nov 12
0
Reading .sav (SPSS) files.
Hi, I used the method read.spss() in library(foreign) to read a .sav file using commands. >library(foreign) >data.sav <- read.spss(''masterfile.sav'') >mydat <- as.data.frame(data.sav) It''s throwing some warnings.. ---------------------------------------------------------------------------- --------------------------------------------
2015 May 31
2
How to use TRUNK only if IAX fails?
Hi Matt, I was a bit concerned on the delay if there might be any when my iax link is down? It would be two dial steps right when my iax link is down. But I?m more than happy to try. Many Thanks, Ashwin. From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Matt Riddell (lists) Sent: 30 May 2015 16:55 To: Asterisk Users Mailing List -
2015 Jun 07
3
Curious problem with NAT
Ashwin Surendran <Ashwin.Surendran at now-health.com> schrieb: > What settings have you got for directmedia? > > Could you try > > nat=force_rport,comedia > directmedia=no Tried. Peer always unreachable, call not possible... :( Other idea? Thanks Luca Bertoncello (lucabert at lucabert.de)
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 Apr 24
5
intersect more than two sets
Hi, I searched the archives and did not find a good solution to that. assume I have 10 sets and I want to have the common character elements of them. how could i do that? -- Weiwei Shi, Ph.D Research Scientist GeneGO, Inc. "Did you always know?" "No, I did not. But I believed..." ---Matrix III
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