Displaying 1 result from an estimated 1 matches for "co2v".
Did you mean:
co2
2012 Nov 12
2
Using "apply" instead of "for" loop / multithreading
...p", particularly for a function with multiple entries.
I have a big data file and would like to apply a function in multi thread to
accelerate the processus.
I have a data frame containing values of* CO2 in ppm (resp[i,6])* that I
want to convert in umol of CO2 emitted by stem volume biomass (CO2v) and
stem area (CO2s). (tree respiration)
The loop that I have is calculating the CO2 fluxes for each row.
*Script :*
for (i in 1:nrow(resp)) {
k=resp[i,5]
CO2umol[i]<-resp[i,6]*((Press*infoch[k,11]*1e-6)/(R*(resp[i,7]+273.15)))
CO2v[i]<-CO2umol[i]/(infoch[k,10])
CO2s[i]<-CO2umol[i]/(in...