> -Original Message-
> From: r-help-boun...@r-project.org
> [mailto:r-help-boun...@r-project.org] On Behalf Of Jonas Sundberg
> Sent: Monday, September 27, 2010 1:43 AM
> To: r-help@r-project.org
> Subject: [R] make changes in existing vector with the apply functio
Hi, I'm trying to make some changes in a vector according to some conditions.
It takes too long time however with vector length > 10 and I guess a better
way would be using the apply function. I cannot sort out how, however.
As a for/if loop:
for (i in 1:length(PrH)) {
if (is.finite(PrH[i])
2 matches
Mail list logo