Just learn R.
Given data.framein R with two columns, one number and one categorical, how can I extract the part data.frameto use?
str(ex0331)
'data.frame': 36 obs. of 2 variables:
$ Iron : num 0.71 1.66 2.01 2.16 2.42 ...
$ Supplement: Factor w/ 2 levels "Fe3","Fe4": 1 1 1 1 1 1 1 1 1 1 ...
Basically, I need to be able to work on two factors separately; that is, I need to individually determine the length / average / sd / etc of the iron retention rate by type Supplement( Fe3or Fe4).
What is the easiest way to accomplish this?
I know the team by(). For example, the following gets some of what I need:
by(ex0331, ex0331$Supplement, summary)
ex0331$Supplement: Fe3
Iron Supplement
Min. :0.710 Fe3:18
1st Qu.:2.420 Fe4: 0
Median :3.475
Mean :3.699
3rd Qu.:4.472
Max. :8.240
------------------------------------------------------------
ex0331$Supplement: Fe4
Iron Supplement
Min. : 2.200 Fe3: 0
1st Qu.: 3.892 Fe4:18
Median : 5.750
Mean : 5.937
3rd Qu.: 6.970
Max. :12.450
. axis, , log() . , ; . data.frame, , , .