Re: [R] BEGINNER: please help me to write my VERY simple function

2003-10-21 Thread Peter Wolf
Michele Grassi wrote: Hi. 1)I have two variables: call a<-c(e.g.0,3,6,7...) b<-c(e.g.6,8,3,4...) I want to create a third vector z wich contain the pairs values z<-c(0,6,3,8,6,3,7,4and so on for each pairs (a,b)). There is a specific function? How can i write my own

Re: [R] BEGINNER: please help me to write my VERY simple function

2003-10-21 Thread Jason Turner
Michele Grassi wrote: Hi. 1)I have two variables: call a<-c(e.g.0,3,6,7...) b<-c(e.g.6,8,3,4...) I want to create a third vector z wich contain the pairs values z<-c(0,6,3,8,6,3,7,4and so on for each pairs (a,b)). There is a specific function? How can i write my ow

[R] BEGINNER: please help me to write my VERY simple function

2003-10-21 Thread Michele Grassi
Hi. 1)I have two variables: call a<-c(e.g.0,3,6,7...) b<-c(e.g.6,8,3,4...) I want to create a third vector z wich contain the pairs values z<-c(0,6,3,8,6,3,7,4and so on for each pairs (a,b)). There is a specific function? How can i write my own function? 2)When i t