Please be more specific about what you want. Give an example of the required 
output. And keep the mailing list in cc when replying.
________________________________
Van: catalin roibu [catalinro...@gmail.com]
Verzonden: woensdag 14 november 2012 17:54
Aan: ONKELINX, Thierry
Onderwerp: Re: [R] aggrete data from combination

Hello,
4 in the first plot, with 2 in the second etc


On 14 November 2012 18:09, ONKELINX, Thierry 
<thierry.onkel...@inbo.be<mailto:thierry.onkel...@inbo.be>> wrote:
You can use combn(100, 2) to generate the combinations of the plots.

It is not clear to me what you want to do with the diameters. You have 4 
diameter for plot 1 and 2 for plot 2. What should the output look like?

ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Research Institute for Nature and 
Forest
team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance
Kliniekstraat 25
1070 Anderlecht
Belgium
+ 32 2 525 02 51<tel:%2B%2032%202%20525%2002%2051>
+ 32 54 43 61 85<tel:%2B%2032%2054%2043%2061%2085>
thierry.onkel...@inbo.be<mailto:thierry.onkel...@inbo.be>
www.inbo.be<http://www.inbo.be>

To call in the statistician after the experiment is done may be no more than 
asking him to perform a post-mortem examination: he may be able to say what the 
experiment died of.
~ Sir Ronald Aylmer Fisher

The plural of anecdote is not data.
~ Roger Brinner

The combination of some data and an aching desire for an answer does not ensure 
that a reasonable answer can be extracted from a given body of data.
~ John Tukey


-----Oorspronkelijk bericht-----
Van: r-help-boun...@r-project.org<mailto:r-help-boun...@r-project.org> 
[mailto:r-help-boun...@r-project.org<mailto:r-help-boun...@r-project.org>] 
Namens catalin roibu
Verzonden: woensdag 14 november 2012 16:47
Aan: r-help@r-project.org<mailto:r-help@r-project.org>
Onderwerp: [R] aggrete data from combination

Dear R users,
A have a dataframe (matrix) with two collumns (plot, and diameter (d)). I want 
all diameters values for different combination of plots.
For example I want all d values for all posible combination, 100C2 (all d 
values for plot 1 with all d values in the plot 2.......with all d values from 
plot 1 with all d values from plot 100, ...... with all d values from plot 99 
with all d values from plot 100). Total 4950 values of diameter (d).
Thank you very much!

structure(list(plot = c(1L, 1L, 1L, 1L, 2L, 2L, 3L, 3L, 3L, 3L, 4L, 4L, 4L, 5L, 
5L, 5L, 5L, 6L, 6L, 7L, 7L, 7L, 7L, 8L, 9L, 9L, 10L, 10L, 10L, 11L, 11L, 12L, 
12L, 12L, 12L, 13L, 13L, 13L, 13L, 13L, 14L, 14L, 14L, 14L, 15L, 15L, 15L, 15L, 
15L, 15L, 16L, 16L, 16L, 16L, 16L, 17L, 17L, 17L, 18L, 18L, 18L, 19L, 19L, 19L, 
19L, 20L, 20L, 20L, 21L, 22L, 22L, 22L, 23L, 23L, 23L, 23L, 23L, 24L, 24L, 25L, 
25L, 25L, 25L, 26L, 26L, 26L, 26L, 26L, 27L, 27L, 27L, 27L, 27L, 28L, 28L, 28L, 
28L, 29L, 29L, 29L, 30L, 30L, 30L, 30L, 32L, 32L, 32L, 32L, 33L, 34L, 34L, 34L, 
35L, 36L, 36L, 36L, 36L, 37L, 37L, 37L, 38L, 38L, 38L, 38L, 38L, 38L, 39L, 39L, 
39L, 39L, 39L, 39L, 40L, 40L, 40L, 41L, 41L, 42L, 42L, 42L, 42L, 42L, 42L, 42L, 
43L, 44L, 44L, 44L, 45L, 45L, 46L, 46L, 47L, 48L, 48L, 48L, 49L, 50L, 50L, 50L, 
50L, 50L, 50L, 51L, 51L, 52L, 52L, 53L, 53L, 53L, 54L, 54L, 54L, 54L, 55L, 56L, 
56L, 57L, 57L, 57L, 58L, 58L, 58L, 59L, 60L, 60L, 60L, 61L, 61L, 62L, 62L, 63L, 
63L, 64L, 64L, 64L, 65L, 65L, 6!
 6L, 66L, 66L, 67L, 67L, 67L, 68L, 68L, 68L, 69L, 69L, 70L, 70L, 71L, 71L, 73L, 
73L, 73L, 73L, 74L, 74L, 74L, 74L, 75L, 75L, 75L, 75L, 76L, 76L, 76L, 76L, 78L, 
78L, 78L, 79L, 79L, 80L, 80L, 81L, 81L, 81L, 81L, 82L, 82L, 82L, 83L, 83L, 83L, 
84L, 85L, 85L, 85L, 87L, 87L, 87L, 87L, 87L, 87L, 88L, 88L, 88L, 88L, 89L, 89L, 
90L, 91L, 91L, 91L, 91L, 91L, 92L, 93L, 93L, 94L, 95L, 95L, 95L, 95L, 96L, 96L, 
96L, 97L, 97L, 98L, 98L, 98L, 98L, 99L, 100L, 100L, 100L, 100L, 100L), d = 
c(15, 27.5, 10.5, 12.25, 14, 32.5, 80, 49.5, 15.25, 13.5, 12.25, 12, 72.5, 
68.5, 12, 9.25, 12.75, 13.5, 28, 38, 10.25, 62.5, 73.5, 61.5, 54.5, 40, 24.25, 
43, 13, 20.75, 23.25, 25.5, 7.25, 11.25, 60.5, 11.25, 8, 11, 93.25, 8.75, 10.5, 
35, 19, 79, 60.5, 64.5, 53.75, 8.75, 9.75, 9.5, 12.5, 21, 10, 46.75, 48.5, 
77.5, 23.75, 60, 11.5, 13.25, 13.75, 76.25, 12.5, 8, 70, 47.75, 52.25, 49.25, 
11.25, 12.5, 15.25, 20.25, 19.25, 20.5, 13.5, 86, 23, 10.5, 20.25, 27.75, 
11.25, 32.5, 28.25, 12.5, 14.75, 83, 19.25, 14.25, 21!
 .5, 26.75, 11.25, 56, 19.75, 55.25, 10, 16.75, 12.5, 19.75, 13, 19.25,
 9.75, 75, 12.5, 11.25, 14.5, 69.5, 13.75, 15.75, 63.75, 18.75, 9.25, 68, 29, 
17.75, 15, 27.25, 10.25, 13.5, 68.25, 9.25, 13, 16.75, 36.5, 11.25, 87.25, 
69.75, 66.25, 15.25, 14.75, 9, 15.75, 17.75, 82, 13.25, 20, 82.5, 86.5, 7.75, 
14.5, 9.25, 95.5, 8.25, 12, 13.5, 16.5, 69, 15.5, 12, 42, 79.5, 40.75, 13.25, 
10, 76.5, 10.75, 16.5, 12.5, 60.25, 11.25, 17, 63.25, 96, 14.25, 49.5, 56.5, 
18, 84.25, 69.5, 12, 64.75, 48.5, 8.25, 29, 68, 7.25, 79.75, 55, 75.5, 60.75, 
57.5, 61, 15.25, 69, 52.25, 98, 13.25, 14.25, 60.75, 14.25, 12.25, 56.5, 18, 
76.25, 20.75, 10.5, 63.25, 12.5, 11.75, 84.5, 33.25, 77.75, 71.5, 11.5, 13.5, 
19, 31.5, 27.25, 21, 13.25, 12.5, 31.75, 22, 20, 58.5, 40.5, 62, 85.5, 11.5, 
12, 10.5, 80.75, 55.5, 87, 42.5, 70.5, 9.25, 56, 73.75, 12.75, 11, 59, 18.75, 
10.75, 81, 14, 33.5, 13.25, 69.25, 8.75, 14.5, 63, 89.25, 73.75, 48.25, 58, 
11.5, 17.25, 12.75, 10, 11.5, 15.25, 93.5, 14.5, 83.75, 9.75, 95, 13.5, 16.25, 
8.5, 8.5, 70, 9.75, 72.5, 71.5, 9.5, 83, 43.75, 51, 55.25, 7!
 5.5, 61, 53.75, 60, 12.25, 47, 13.75, 86.5, 14.5, 10, 9.75, 12, 13.75, 31.75, 
64.75, 13.75, 83.5, 45.5, 67, 84.5, 57.5, 46)), .Names = c("plot", "d"), class 
= "data.frame", row.names = c(NA,
-291L))

--
---
Catalin-Constantin ROIBU
Forestry engineer, PhD
Forestry Faculty of Suceava
Str. Universitatii no. 13, Suceava, 720229, Romania
office phone     +4 0230 52 29 78, ext. 531
mobile phone   +4 0745 53 18 01
                       +4 0766 71 76 58
FAX:                +4 0230 52 16 64
silvic.usv.ro<http://silvic.usv.ro>

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org<mailto:R-help@r-project.org> mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
* * * * * * * * * * * * * D I S C L A I M E R * * * * * * * * * * * * *
Dit bericht en eventuele bijlagen geven enkel de visie van de schrijver weer en 
binden het INBO onder geen enkel beding, zolang dit bericht niet bevestigd is 
door een geldig ondertekend document.
The views expressed in this message and any annex are purely those of the 
writer and may not be regarded as stating an official position of INBO, as long 
as the message is not confirmed by a duly signed document.



--
---
Catalin-Constantin ROIBU
Forestry engineer, PhD
Forestry Faculty of Suceava
Str. Universitatii no. 13, Suceava, 720229, Romania
office phone     +4 0230 52 29 78, ext. 531
mobile phone   +4 0745 53 18 01
                       +4 0766 71 76 58
FAX:                +4 0230 52 16 64
silvic.usv.ro<http://silvic.usv.ro>
* * * * * * * * * * * * * D I S C L A I M E R * * * * * * * * * * * * *
Dit bericht en eventuele bijlagen geven enkel de visie van de schrijver weer en 
binden het INBO onder geen enkel beding, zolang dit bericht niet bevestigd is 
door een geldig ondertekend document.
The views expressed in this message and any annex are purely those of the 
writer and may not be regarded as stating an official position of INBO, as long 
as the message is not confirmed by a duly signed document.

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to