[R] Writing - specyfic format

2007-06-28 Thread jastar
Hi all, I have a trouble - I need to write file in a very specyfic format. I have two vectors which different lengths and one data.frame (or matrix). I want to write it to *.txt file in following way: 1st row of file is my 1st vector (separate by spacebar) 2nd row of file is 2nd vector (also

Re: [R] Writing - specyfic format

2007-06-28 Thread jastar
That's exactly what I need. Thank's a lot!! Earl F. Glynn wrote: jastar [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all, I have a trouble - I need to write file in a very specyfic format. I have two vectors which different lengths and one data.frame (or matrix). I

Re: [R] R: Searching and deleting elements of list

2007-03-14 Thread jastar
[[4]] Stefano -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] conto di jastar Inviato: giovedì 8 marzo 2007 12.31 A: r-help@stat.math.ethz.ch Oggetto: [R] Searching and deleting elements of list Hi, I have a problem. Please, look at example and try

[R] Searching and deleting elements of list

2007-03-08 Thread jastar
Hi, I have a problem. Please, look at example and try to help me!! A-c(aaa,bbb,ccc,ddd,eee) B-c(vvv,ooo,aaa,eee,zzz,bbb) C-c(sss,jjj,ppp,ddd) D-c(bbb,ccc) mydata=list(A,B,C,D) I want to find and delete from 'mydata' all elements which occur in A (except A). I mean after operation:

Re: [R] delete selecting rows and columns

2007-03-05 Thread jastar
I mean something like in MATLAB matrix(sel_r,:)=[] jastar wrote: Hi, I'm working with a big square matrix (15k x 15k) and I have some trouble. I want to delete selecting rows and columns. I'm using something like this: sel_r=c(15,34,384,985,4302,6213) sel_c=c(3,151,324,3384,7985,14302

[R] delete selecting rows and columns

2007-02-28 Thread jastar
Hi, I'm working with a big square matrix (15k x 15k) and I have some trouble. I want to deleting selecting rows and columns. I use something like this: sel_r=c(15,34,384,985,4302,6213) sel_c=c(3,151,324,3384,7985,14302) matrix=matrix[-sel_r,-sel_c] but it works very slow. Does anybody know