Dear friends,
When i clean my dataset , i met a difficulty
suppose my data set is :
*> data<-data.frame(x=c(1:5,1,2,3))
> data
x
1 1
2 2
3 3
4 4
5 5*
6 1
7 2
8 3
Now i need to add the data which are less than 3.5 at the bottom, not
including the top data, so the results should be :
x
1 1
2 2
3 3
4 4
5 5
*6 6*
I tried to use " data[data$x>3.5,]" to do it , but it also delete the first
several numbers,* How to finish it ?*
Thanks very much.
--
Kind Regards,
Zhi Jie,Zhang
[[alternative HTML version deleted]]