I will try to keep it simple. I have a dataset with 50407 rows and 422 columns. Within this 50k rows I search for some data points which comes to 346 rows and 422 columns. I would like to ID the 346 rows. So I added a new column called MODE and put in A. So after that I have 346 rows and 423 column. Then I would like to add the 347 rows back to the 50407 with the new column MODE.
maindata <- data.frame(main_set)
cutdata <- data.frame(cut_set)
data_set <- rbind(maindata, cutdata)
add_data <- unique(data_set)
when I do as you may guess because of the new column there all unique now so data does not gets cut.
So I'm not sure what to try now. whatever help you can give.
example main
column0|column1|column2|column3|MODE
4 | 83 | 23 | 863 | B
53 | 26 | 9 | 153 | B
33 | 66 | 91 | 693 | B
6 | 87 | 27 | 863 | B
57 | 27 | 9 | 153 | B
37 | 67 | 97 | 693 | B
example cut
column0|column1|column2|column3|MODE
6 | 87 | 27 | 863 | A
57 | 27 | 9 | 153 | A
37 | 67 | 97 | 693 | A
rbind
column0|column1|column2|column3|MODE
4 | 83 | 23 | 863 | B
53 | 26 | 9 | 153 | B
33 | 66 | 91 | 693 | B
6 | 87 | 27 | 863 | B
57 | 27 | 9 | 153 | B
37 | 67 | 97 | 693 | B
6 | 87 | 27 | 863 | A
57 | 27 | 9 | 153 | A
37 | 67 | 97 | 693 | A
Idea answer
column0|column1|column2|column3|MODE
4 | 83 | 23 | 863 | B
53 | 26 | 9 | 153 | B
33 | 66 | 91 | 693 | B
6 | 87 | 27 | 863 | A
57 | 27 | 9 | 153 | A
37 | 67 | 97 | 693 | A