Displaying 2 results from an estimated 2 matches for "woida71".
2011 May 13
2
Creating dataframes
I would like to create a certain number of dataframes out of one dataframe
where each of the dataframes
is related to a factor. This should be possible with a loop or a function,
as is very clumsy to do it manually
when there are quite a lot factors.
For example having a dataframe called "exmpl":
Site Value
1 12
1 15
1 18
1 21
1 12
1 13
2 15
2 12
2 58
2 62
2 22
2 65
2 29
3 21
3 55
2011 May 03
6
Simple loop
Hello everybody,
I am beginning with loops and functions and would be glad to have help in
the following question:
If i have a dataframe like this
Site Prof H
1 1 24
1 1 16
1 1 67
1 2 23
1 2 56
1 2 45
2 1 67
2 1 46
And I would like to create a new column that subtracts the minimum of H from
H, but for S1 and P1
only