rg] On Behalf Of 09wkj
> Sent: Tuesday, June 08, 2010 4:32 PM
> To: r-help@r-project.org
> Subject: Re: [R] iterating over groups of columns
>
> In the code fragment, I used 'by' to actually compute the min value
> (part of the statement with the eval) - and I agree that an a
a),'\\.'))[2]
--- 09wkj schrieb am Di, 8.6.2010:
> Von: 09wkj
> Betreff: Re: [R] iterating over groups of columns
> An: r-help@r-project.org
> CC: "Jannis"
> Datum: Dienstag, 8. Juni, 2010 22:32 Uhr
> In the code fragment, I used 'by' to
> actu
In the code fragment, I used 'by' to actually compute the min value (part of
the statement with the eval) - and I agree that an apply would work there
wonderfully.
However, my hope was to use an apply for the subsetting of the data.frame's
columns, so that I could then use an apply to compute
you should have found a solution for that in the help page of apply.
just run
min.values = apply(the.data,1,min)
the '1' marks the direction (e.g. whether apply is applied to rows or
columns), it could be a 2 as well. Check that yourself in the apply
documentation.
Then run rbind(the.data,m
I am mainly a Java/C++ programmer, so my mind is used to iterating over data
with for loops. After a long break, I am trying to get back into the "R
mindset", but I could not find a solution in the documentation for the applys,
aggregate, or by.
I have a data.frame where each row is an entry wi
5 matches
Mail list logo