Displaying 10 results from an estimated 10 matches for "umol".
Did you mean:
uml
2010 Nov 22
4
Wait for user input with readline()
...readline(). Can I put readline
in a function that will wait for input?
Are there other options for getting user input that allow require that the
script wait for user input?
In the code I want the user to input the value for O2sat using
O2sat=as.numeric(readline("What is the O2 saturation in umole/L?"))
The problem is that when I run this entire block of code rather than running
individual functions, the program doesn't wait for the user input and just
continues to the next line of code. Does anyone have a work around for this
type of problem?
Thanks for your help,
Nate
#######...
2012 May 07
1
How can I brake a label in two lines when using expression()?
..."fCO2", "fTreat", "fWeek"), row.names = c(NA, -12L), class = "data.frame")
xyplot(cbind(Mean.Rate,lower,upper)~fWeek|fTreat,
resp.week.mean.rate,
as.table=TRUE,
xlab="Week",
ylab=expression("Mean Reapisration Rate
(umol."*L^-1*".g (AFDM)"^-1*")"),
scales=list(alternating=FALSE,
tick.number=10,
tck=c(-1,0)),
layout=c(4,1),
ylim=1:5,
auto.key=list(title="Treatment"...
2009 Mar 29
1
a loop for boxplot graphs
Dear Colleagues
I have the following code that generates a boxplot for one specific labtest:
boxplot.n(LBSTRESN~COHORT, main="Boxplot of laboratory data for XLXXX-XXX test=Creatinine",
subset = LBTEST=="Creatinine",
xlab = "Cohort Number",
ylab = "Units = umol/L",
varwidth=TRUE
I would like to know if there is a way to loop through the dataset and produce the boxplot for a number of specific labtest.
Looking at the documentation for loops I can't see how I would change the "ylab","main"and "subset"
Can someo...
2009 Mar 03
1
sm.density.compare
I am running the sm.density.compare function amd I am getting the following error:
my code is > sm.density.compare(LBSTRESN,COHORT,xlab="Units = umol/L"subset = LBTEST=="Creatinine")
Error in if (from == to) rep.int(from, length.out) else as.vector(c(from, :
missing value where TRUE/FALSE needed
I do not understand the error and I have had no help when searching the WEB or the R documentation.
I have tried the sample pro...
1999 Nov 20
1
No subject
...1/creatinine, but with the original creatinine value indicated - to make it easier for people to use it. When using the graph, the linear decrease in 1/crea over time will be useful for managing patients. Here is what I came up with, but how do I configure the Y axis with the natural values 40-2000 umol/l alongside their reciprocal representation, so that 1/crea will be a stright line ?
x <- NA
y <- NA
plot(x,y,xlim=c(0,10),ylim=c(40,2000))
grid(nx=10,ny=10,col="black",lty="solid")
grid(nx=120,ny=10,col="black",lty="dotted")
Troels Ring, M.D
De...
2010 Dec 17
2
newbie question on str output
...tr(*, ".Environment")=<environment: R_EmptyEnv>
- attr(*, "labels")=List of 2
..$ x: chr "Ambient carbon dioxide concentration"
..$ y: chr "CO2 uptake rate"
- attr(*, "units")=List of 2
..$ x: chr "(uL/L)"
..$ y: chr "(umol/m^2 s)"
>
What do the nfnGroupdata, nfGroupdata mean, please?
Also, what do the attr with formula and outer mean, please?
How would I find those things out without posting to the list.
Thanks,
Laura
[[alternative HTML version deleted]]
2012 May 03
1
braking a label in two lines when using expression()
..."fCO2", "fTreat", "fWeek"), row.names = c(NA, -12L), class = "data.frame")
xyplot(cbind(Mean.Rate,lower,upper)~fWeek|fTreat,
resp.week.mean.rate,
as.table=TRUE,
xlab="Week",
ylab=expression("Mean Reapisration Rate
(umol."*L^-1*".g (AFDM)"^-1*")"),
scales=list(alternating=FALSE,
tick.number=10,
tck=c(-1,0)),
layout=c(4,1),
ylim=1:5,
auto.key=list(title="Treatment"...
2012 Nov 12
2
Using "apply" instead of "for" loop / multithreading
..."apply"
instead of a "for loop", 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[...
2012 Dec 05
1
nlme starting values are not the correct length
...42
5 jg 0 2.7202 101.1253
5 jg 0 1.0746 51.1787
5 jg 0 -0.5913 0.975
This works so far:
lightresponse<-groupedData(Photo~PARi|Subject,data=lightr,outer = ~ Species * Fert,labels = list(x = "PAR", y = "CO2 uptake rate"),units = list(x = "(photon s-1)", y = "(umol/m?2 s)"))
Photo.resp<-function(PARi,A,B,C)A*(1-exp(-C*PARi/A))-B
Photo.resp<-deriv ((~A *(1-exp(-C*PARi/A))-B),c("A","B","C"),function(PARi,A,B,C){})
> lightresp.fit1<-nlme(model=Photo~Photo.resp(PARi,A,B,C),fixed=A+B+C~1,data=lightresponse,start=c(...
1999 Nov 20
1
Sv:
...1/creatinine, but with the original creatinine value indicated - to make it easier for people to use it. When using the graph, the linear decrease in 1/crea over time will be useful for managing patients. Here is what I came up with, but how do I configure the Y axis with the natural values 40-2000 umol/l alongside their reciprocal representation, so that 1/crea will be a stright line ?
>
> x <- NA
> y <- NA
> plot(x,y,xlim=c(0,10),ylim=c(40,2000))
> grid(nx=10,ny=10,col="black",lty="solid")
> grid(nx=120,ny=10,col="black",lty="dotted&quo...