I wonder if someone can help. I have a simple dataframe:
spp rep ac.temp sr ink.temp flux.type flux unit
1 Ecklonia 1 19 Ecklonia:1:19 10.1 R 0.1614302 mg O2 gDW-1 hr-1
2 Ecklonia 1 19 Ecklonia:1:19 19.0 R 0.6558070 mg O2 gDW-1 hr-1
3 Ecklonia 1 19 Ecklonia:1:19 24.7 R 0.8777117 mg O2 gDW-1 hr-1
4 Ecklonia 1 19 Ecklonia:1:19 28.9 R 2.3192236 mg O2 gDW-1 hr-1
5 Ecklonia 1 20 Ecklonia:1:20 10.3 R 0.5050336 mg O2 gDW-1 hr-1
6 Ecklonia 1 20 Ecklonia:1:20 20.8 R 1.2928442 mg O2 gDW-1 hr-1
7 Ecklonia 1 20 Ecklonia:1:20 24.8 R 1.8159838 mg O2 gDW-1 hr-1
8 Ecklonia 1 20 Ecklonia:1:20 29.8 R 2.8463946 mg O2 gDW-1 hr-1
9 Ecklonia 1 21 Ecklonia:1:21 10.3 R 0.5214549 mg O2 gDW-1 hr-1
10 Ecklonia 1 21 Ecklonia:1:21 19.5 R 0.9994689 mg O2 gDW-1 hr-1
I would like to remove rows where the unique combinations (there are many more than just those shown) of the column data$sr are of length less than 3 elements.
Anyone know of an automatic way of doing this?
Thanks in advance.
You could use
?tableto count the occurrence of elements.