search for: afshar

Displaying 10 results from an estimated 10 matches for "afshar".

Did you mean: afshart
2006 Feb 03
2
workspace question
...on this from the old project. Does there exist a better way than just deleting the files associated w/ the old project manually? I looked in the Intro to R manual and searched for "workspace" and didn't see anything on this aspect. Kind regards, Dave ps - please reply directly to afshar at miami.edu
2005 Oct 10
2
wildcards and removing variables
All, Is there are a wildcard in R for varible names as in unix? For example, rm(results*) to remove all variable or function names that begin w/ "results"? cheers, Dave ps - please respond directly to afshar@miami.edu [[alternative HTML version deleted]]
2005 Nov 16
2
save to ascii
...(starting w/ RDA2 ...) before the first actual value in the vector. Is there are way to save to ascii such that this does not happen? I checked the help under save and didn't see anything. I apologize in advance for this overly simplistic question. Cheers, Dave ps - please reply directly to afshar at miami.edu
2005 Aug 20
2
diagonal matrices
...oop (1 to J), so each time I'd like to augment V with the most recently calculated V.i, such that I'll have V after the final iteration of the for loop. question: how to initialize V and do the augmentation. any advice much appreciated. cheers, dave ps - please respond directly to afshar@miami.edu, thanks! [[alternative HTML version deleted]]
2005 Oct 07
1
function agruments
...rguments of a function, is it possible to supply a function as an argument? If so, how is this introduced into the function code as well? For example, in the body of the function I have: result = function(x) and I'd like to supply either function.1 or function.2. Please reply directly to afshar@miami.edu Thanks! Dave [[alternative HTML version deleted]]
2005 Aug 09
2
numeric operations w/ lists
...ments. WANT: subtract Y from each of the 20 lists in X. Here's what I tried and the error messages: > X - rep(Y, 20) Error in X - rep(Y 20) : non-numeric argument to binary operator I tried several methods w/o success. Any suggestions kindly appreciated. Thanks, Dave ps - please copy afshar at miami.edu in the reply, as I've had problems receiving the daily digest.
2009 Jul 24
1
Aggregate, max and time of max
...= aggregate(data.ex[c(1)], data.ex[c(3,4)], max) ## this provides the peak of each subject on each treatment, but time is ## lost. Including time in the statement doesn't help clearly as then ## the peak of all the times will be calculated David -------------------------------------- David Afshartous, Ph.D. Research Assistant Professor University of Miami, Miller School of Medicine Division of Clinical Pharmacology 1500 N.W. 12th Avenue, 15th Floor West Miami, Florida 33136 E-mail: afshar at med.miami.edu Phone: +1 305-243-1549
2005 Oct 07
3
index question
...unk [1] 1 2 > group.label.new[junk && 8:10] [1] 7 9 6 1 10 4 8 3 2 5 I'd like to select the elements indexed by "junk" and also the 8th through 10th elements, which clearly isn't the result I'm getting. Any help appreciated, and please reply directly to afshar@miami.edu cheers, dave [[alternative HTML version deleted]]
2006 Jun 14
3
appending
...tor ("delta.patient.comb"). The function works as is via indexing, but is there an easier way to collect the measurements via appendinng the 6 measurements each time to the current set? I couldn't find anything in Intro to R on appending. cheers, Dave ps - please respond directly to afshar at miami.edu creatine.function.new = function(delta.0.Y.0, gamma, comp.LIS.frm, comp.CAND.frm) { ## function to calcuate the delta.i, i.e. the percent ## leftover ## gamma = rate of Cr going into bucket, e.g., mg/hr ## delta.0.Y.0 = product of delta.0 and Y.0 at baseline ## Y.1 = delta.0.Y.0 + g...
2010 Jun 02
2
pdf function, resize xyplot plot automatically
...anually that would be great. Any tips much appreciated. pdf(file = "foo.pdf", onefile = T) xyplot(Y ~ Time | as.factor(Subject), data = foo.frm, scale = list(x = list(at = c(0, 15, 30, 45, 60, 90, 150, 210, 270)))) dev.off() Thanks, David -------------------------------------- David Afshartous, Ph.D. Research Assistant Professor University of Miami, Miller School of Medicine Division of Clinical Pharmacology 1500 N.W. 12th Avenue, 15th Floor West Miami, Florida 33136 E-mail: afshar at med.miami.edu Phone: +1 305-243-1549