search for: pktime

Displaying 2 results from an estimated 2 matches for "pktime".

Did you mean: mktime
2011 Sep 27
2
Equivalent to regMatchPos in R.
...within "Cycle 12 Day 15" is the text "Day" located. The following works in S+, but I haven't been able to locate a function within R that does what regMatchPos does in S+. (If possible, I'd like a function that works in both.) Can someone please help? PKTimes$Day <- substring( PKTimes$Visit, regMatchPos(PKTimes$Visit,"DAY")[,2] +2, nchar(PKTimes$Visit ) Thanks, Michael [[alternative HTML version deleted]]
2005 Dec 05
1
how to save output all together
Dear R users: I have a problem about catch the value from function. I have following two functions (part): sbolus1 <- function() { ....... for( i in 1:Subject) { kel<-par1 Vd<-par2 PKindex<-sbolus1.out(PKtime,kel,Vd,defun,par1,par2,Dose,i) } savefile(PKindex) } sbolus1.out<-function(PKtime,kel,Vd,defun,par1,par2,Dose,i) { time<-PKtime$time parms<-c(kel=kel,Vd=Vd) C1.lsoda<-data.frame(lsoda(Dose/Vd,c(0,time),defun,parms)) cat("\n") sim<-matrix(c(kel,Vd,p...