system.time(int2bin(x))
user system elapsed
0.310.000.32
On Thu, Dec 1, 2011 at 7:14 AM, Jonas Jägermeyr wrote:
Dear R-help members,
I'm processing a large amount of MODIS data where quality assessment
information is stored as an integer value for each pixel. I have to
converte
ndigits-q+1] <- (x %% 2)
x <- (x %/% 2)
}
bin<- apply(base,1,paste,collapse="")
return(bin)
}
Since it is still slow, I have to find a way to express this more
elegantly. I'd really appreciate any help.
Thanking you, with best regards
Jon
2 matches
Mail list logo