<p>It looks like your sort column is being treated as a string value, so you need to convert it to numeric before sorting. Data passed into Kepler's R actor get represented as text, so this may be why you are seeing it only in Kepler. Use an R function to convert to numeric and you should be set.</p>
<p>Matt</p>
<div class="gmail_quote">On Jun 16, 2012 11:24 AM, "sabsirro" <<a href="mailto:sabsirro@arcor.de">sabsirro@arcor.de</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear Kepler Users<br>
<br>
I want to use an R actor to aggregate the data of one input vector by another<br>
input which contains the groups. But if I do so it screws me up the order of<br>
groups. As you see it sorts starting all groups with a 1 in front then 2 and<br>
so on instead of simply 1,2,3,4 ....<br>
<br>
aggregate(biomass_in, by=list(location_in), FUN=sum)<br>
Group.1 x<br>
1 1 0.072962<br>
2 10 0.066879<br>
3 11 0.044078<br>
4 12 0.000761<br>
5 13 0.034865<br>
6 14 0.043246<br>
7 15 0.074629<br>
8 16 0.172008<br>
9 17 0.071684<br>
10 18 0.091350<br>
11 19 0.079346<br>
12 2 0.037179<br>
13 20 0.012782<br>
14 21 0.193303<br>
15 22 0.213626<br>
16 23 0.066475<br>
17 24 0.119411<br>
18 25 0.298407<br>
19 26 0.053256<br>
20 27 0.006891<br>
21 3 0.032127<br>
22 4 0.037077<br>
23 5 0.009296<br>
24 6 0.094962<br>
25 7 0.084117<br>
26 8 0.113690<br>
27 9 0.152664<br>
<br>
This seems to be Kepler related cause if I use a normal R console this does<br>
not happen. Anybody an idea?<br>
<br>
Best regards Claas<br>
_______________________________________________<br>
Kepler-users mailing list<br>
<a href="mailto:Kepler-users@kepler-project.org">Kepler-users@kepler-project.org</a><br>
<a href="http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users" target="_blank">http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users</a><br>
</blockquote></div>