Re: [R] problem: the id of the data set

2016-06-09 Thread Nordlund, Dan (DSHS/RDA)
We really need a reproducible example. Otherwise, we can only guess what the starting point was, how the merge was done, what the expected result was, and how the obtained result differed from the expected result. Dan Daniel Nordlund, PhD Research and Data Analysis Division Services & Enterpri

Re: [R] problem: the id of the data set

2016-06-09 Thread Ulrik Stervbo
How do you merge the two data.frames? Could it be that you make an outer join? HTH Ulrik On Thu, 9 Jun 2016 at 19:45 Michael Dewey wrote: > Perhaps I do not understand you correctly but why not create a variable > for the id before you merge? > > On 09/06/2016 09:00, 周 可卫 wrote: > > I got the d

Re: [R] problem: the id of the data set

2016-06-09 Thread Michael Dewey
Perhaps I do not understand you correctly but why not create a variable for the id before you merge? On 09/06/2016 09:00, 周 可卫 wrote: I got the dataset after merge two old one .The id of the column isn’t just the number of the column.So when I identify some obs,I got the figure 28000(though

[R] problem: the id of the data set

2016-06-09 Thread 周 可卫
I got the dataset after merge two old one .The id of the column isn’t just the number of the column.So when I identify some obs,I got the figure 28000(though my obs is only 6000).So it causes the trouble to remove these obs in the dataset.I wander how to make the id of the merged dataset in a