Re: [R] vector help

2009-12-10 Thread David Winsemius
On Dec 10, 2009, at 3:47 PM, Steve Lianoglou wrote: Hi Ramya, On Dec 10, 2009, at 3:29 PM, David Winsemius wrote: On Dec 10, 2009, at 2:55 PM, Ramya wrote: I have tow vectors one is the subset of another x is a subset of X Both are vectors with n elements X[X %in% x] would give me x ag

Re: [R] vector help

2009-12-10 Thread Steve Lianoglou
Sender: r-help-boun...@r-project.org On-Behalf-Of: mailinglist.honey...@gmail.com Subject: Re: [R] vector help Message-Id: <2154bd29-add9-4cfc-8447-ba5eea3a3...@gmail.com> Recipient: yingmei.la...@magnetar.com --- Begin Message --- Hi Ramya, On Dec 10, 2009, at 3:29 PM, David Winsemius

Re: [R] vector help

2009-12-10 Thread Steve Lianoglou
Sender: microsoftexchange329e71ec88ae4615bbc36ab6ce411...@magnetar.com On-Behalf-Of: mailinglist.honey...@gmail.com Subject: Re: [R] vector help Message-Id: <118a120f-a549-4bbe-86a4-8157e6529...@journal.report.generator> Recipient: 20...@boyersesf.com --- Begin Message --- Sender: r-hel

Re: [R] vector help

2009-12-10 Thread Steve Lianoglou
Hi Ramya, On Dec 10, 2009, at 3:29 PM, David Winsemius wrote: > > On Dec 10, 2009, at 2:55 PM, Ramya wrote: > >> >> I have tow vectors one is the subset of another >> >> x is a subset of X Both are vectors with n elements >> >> X[X %in% x] would give me x again rite because it is a subset bu

Re: [R] vector help

2009-12-10 Thread David Winsemius
On Dec 10, 2009, at 2:55 PM, Ramya wrote: I have tow vectors one is the subset of another x is a subset of X Both are vectors with n elements X[X %in% x] would give me x again rite because it is a subset but i want all those are not in x from X. X[which(X != x)] should this do that Per

[R] vector help

2009-12-10 Thread Ramya
I have tow vectors one is the subset of another x is a subset of X Both are vectors with n elements X[X %in% x] would give me x again rite because it is a subset but i want all those are not in x from X. X[which(X != x)] should this do that Thanks Ramya -- View this message in context: http

Re: [R] vector help

2008-07-21 Thread Dimitris Rizopoulos
try this: paste(test, collapse = "-") Best, Dimitris Dimitris Rizopoulos Biostatistical Centre School of Public Health Catholic University of Leuven Address: Kapucijnenvoer 35, Leuven, Belgium Tel: +32/(0)16/336899 Fax: +32/(0)16/337015 Web: http://med.kuleuven.be/biostat/ http://pe

Re: [R] vector help

2008-07-21 Thread Jorge Ivan Velez
Try this: test=c("Geneset=HSA04910_INSULIN_SIGNALING_PATHWAY","157","20") paste(test, collapse="-",sep="") HTH, Jorge On Mon, Jul 21, 2008 at 2:49 PM, Rajasekaramya <[EMAIL PROTECTED]> wrote: > > hi > > I have vector test. It has 3 elements. I want to join the three into one > vector. > "Gene

Re: [R] vector help

2008-07-21 Thread Henrique Dallazuanna
Try: paste(test, collapse='-') On Mon, Jul 21, 2008 at 3:49 PM, Rajasekaramya <[EMAIL PROTECTED]> wrote: > > hi > > I have vector test. It has 3 elements. I want to join the three into one > vector. > "Geneset=HSA04910_INSULIN_SIGNALING_PATHWAY-157- 20". > how can i do it. > > > >> class(test) >

[R] vector help

2008-07-21 Thread Rajasekaramya
hi I have vector test. It has 3 elements. I want to join the three into one vector. "Geneset=HSA04910_INSULIN_SIGNALING_PATHWAY-157- 20". how can i do it. > class(test) [1] "character" > test [1] "Geneset=HSA04910_INSULIN_SIGNALING_PATHWAY" "157"