[R] How to keep two Vectors to be

About this list Date view Thread view Subject view Author view Attachment view

From: #JIA YIYU# (yyjia@pmail.ntu.edu.sg)
Date: Fri 14 Feb 2003 - 19:05:46 EST


Message-id: <295CB338B611594582D82D9F26AEF7060DC6AC@mail02.student.main.ntu.edu.sg>


Hi all,

I am beginner of R. I want to ask for help from you.

I have two "data.frame" type object : s40 and s100. s40 and s100 have same structure: they are actually two dimention array like :

V1 V2
34 6768
234 36
65 60
.....

Now s40 and s100 have almost same value in V1, but they lack some value in V1 from each other. What I want to do is to expand them to be same long by inserting those lacking values into V1 of s40 and s50 and the responed value in V2 is 0 or mean of V2.

Is there any easy way to set this problem down? Any help will be appreciated very much!

        Jia Yiyu

______________________________________________
R-help@stat.math.ethz.ch mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Tue 01 Jul 2003 - 09:11:22 EST