[R] conditional dataframe search and find

2010-07-03 Thread oscar linares
After some processing... ct.df<- data.frame(time,conc) ct.df gives time conc 1 0 164.495456 2 1 133.671185 3 2 108.622975 4 3 88.268468 5 4 71.728126 6 5 58.287225 7 6 47.364971 8 7 38.489403 9 8 31.27699

[R] Calculation error

2010-05-02 Thread oscar linares
Dear Rxperts, Running the following code: === twlo=10; twhi=20; wt=154; vd=0.5; cl=0.046; tau=6; t=3; F=1; wtkg <- wt/2.2 # convert lbs to kg vd.pt <- wtkg * vd # compute weight-based vd (L) cl.pt <- wtkg * cl # com

[R] R programmer Ann Arbor Area

2010-01-06 Thread oscar linares
Dear Rs Our group is in need of an R programmer to work on Clinical Pharmacokinetics Project in Ann Arbor, Michigan Area. Interested R programmers send e-mail to: olina...@umich.edu Thanks:-) -- Oscar Oscar A. Linares, MD Translational Medicine Unit LaPlaisance Bay, Bolles Harbor Monroe, Mich

[R] boxplot help

2010-01-06 Thread oscar linares
Dear Rexperts, I am trying to add a '+' identifying the mean in a boxplot using the following sizelist <- split(size, grp) centers <- boxplot(sizelist, style.bxp = "att", medpch = "o", ylab = "Prostate Volume (cm3)") points(centers, unlist(lapply(sizelist, mean)), pch = "+")

[R] anova/factor

2009-12-07 Thread oscar linares
Dear Wiza[R]ds, I have the following data in a data.frame. I need to do an anova with multiple comparison but I don't know how to factor the groups for analysis. There are 3 groups, 1,2 and 3 labelled in column 1. Help appreciated with thanks in advance. Group SI Sif SG

[R] data manipulation

2009-12-03 Thread oscar linares
Dear Wiza[R]ds, I have a data.frame header that looks like this: v2FfaPre15v2FfaPre10v2FfaPre5v2Ffa2v2Ffa3v2Ffa4 I need it to look like this, 1510523 4 i.e., with v2FfaPre and v2Ffa stripped off Any suggestions, Thanks in advance! -- Oscar Oscar A.

[R] Plotting observed vs. Predicted values, change of symbols

2009-11-29 Thread oscar linares
Dear Wiz[R]ds, I am deeply grateful for the help from Duncan Murdoch, Gray Calhoun, and others. We are almost there. For whatever reason, I can't change the symbol from a circle to a triangle in the upright posture plots. Any ideas? I have included the problem in full. # tritiated (3H)-Norepineph

[R] Plotting observed vs. fitted values

2009-11-28 Thread oscar linares
Dear Wiza[R]ds, I am very grateful to Duncan Murdoch for his assistance with this problem. His help was invaluable. However, the problem has become a little more complicated for me. Now, in each plot, I need to plot the observed and fitted values of a supine and upright posture experiment. Here is

[R] Plot fitted vs observed values

2009-11-28 Thread oscar linares
Dear Wiza[R]ds, # I have the following experimentally observed data: csdata <- data.frame( time=c(0,1,3,9,20), conc=c(638.697,395.69,199.00,141.58,112.16) ) # weighting resp means response wt.MM<- function(resp, time,A1,a1,A2,a2) { pred <- A1*exp(-a1*time)+A2*exp(-a2*time) (resp - pred)

Re: [R] Switch Help

2009-11-18 Thread oscar linares
on't need the curly brackets here if theres only one expresion, > and sometimes its good to restrict the inputs to only those you want > So that > > aar("something wrong") > > # Error in match.arg(command) : 'arg' should be one of "scrn", "dx&quo

[R] Switch Help

2009-11-18 Thread oscar linares
Dear Rexperts, Given, aar <-function(command) { switch(command, {scrn = cat("scrn :Screening","\n")} {dx = cat("dx:Diagnosis","\n")} {df = cat("df:Don't Forget","\n")} ) } I want to be able to do: aar("dx") # function does cat("dx:Diagnosis","\n") aar(c("dx","df")) # f

[R] Rcmdr

2009-09-19 Thread oscar linares
Is there a UseR! manual in the works for the outstanding Rcmdr? -- Oscar Oscar A. Linares, MD Translational Medicine Unit Bolles Harbor Monroe, Michigan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.eth

[R] STACK

2009-04-01 Thread oscar linares
Dear Rxperts I have a data.frame as follows ABCD 14 710 25 811 36 912 I want to convert it to a data frame with a single row (i.e., stack the columns without the heading) 1 2 3 4 5 6 7 8 9 10 11 12 Any suggestions please. Thanks in advance! --

[R] data management

2009-01-25 Thread oscar linares
Dear Rxperts, I would like to convert the following: StudyStudy.NameParameterDestSrcFormValueMin MaxFSD 1NT_1-0BFK(03)03A0.128510.0E+001. 0.41670E-01 1NT_1-0BFL(00,03)0003D0.36577 1NT_1-0BFL(00

[R] ?grep

2009-01-18 Thread oscar linares
Dear Rxperts, I have the following data: Study Study.Name C Category TC Time QC QO SD FSD Theta 1 NONE 0P(22) 0 0.00 7.5596 0 0 8.0361e-03 0 1 NONE 6G(50) 0 0.00 1. 0 0 0.e+00 0 1 NONE 2F(02) 0 0.00 100.00

Re: [R] read a xls file

2009-01-18 Thread oscar linares
use install.package(RODBC) library("RODBC") cnct <- odbcConnectExcel("filename.xls") hope this helps On Sun, Jan 18, 2009 at 9:15 AM, Michele Santacatterina wrote: > Hello, > > i have a xls file. I will read it in r, what library-command i use for > this?? > > any ideas?? > > Thanks > > Mic

[R] data management

2009-01-18 Thread oscar linares
Dear Rxperts, I have a varaibles data file that looks like this p(1) 10 p(1) 3 p(1) 4 p(2) 20 p(2) 30 p(2) 40 p(3) 4 p(3) 1 p(1) 2 I cannot process these data with R because it does not like the parentheses. How can I get these to look like: p1 10 p1 3 p1 4 p2 20 p2 30 p2 40 p3 4 p3 1 p3 2 The

Re: [R] install.views()

2009-01-10 Thread oscar linares
Thanks! Your suggestion did it:-) OAL On Sat, Jan 10, 2009 at 3:00 PM, oscar linares wrote: > > Dear Rxperts, > > Using R 2.8.1 and trying > > install.views("Cluster") > > getting error > > Error: could not find function "install.views" > &

[R] install.views()

2009-01-10 Thread oscar linares
Dear Rxperts, Using R 2.8.1 and trying install.views("Cluster") getting error Error: could not find function "install.views" Please help:-( -- Oscar Oscar A. Linares Molecular Medicine Unit Bolles Harbor Monroe, Michigan [[alternative HTML version deleted]] __

[R] Converting english words to numeric equivalents

2008-07-27 Thread oscar Linares
Hello, I am trying to convert english words to numeric equivalents, e.g., abc to 123. Is there a function or library or package for doing this in R? If not, can it be done easily in R? Thanks, Oscar [[alternative HTML version deleted]] ___

Re: [R] Manipulate Data (with regular expressions)

2008-07-08 Thread oscar Linares
Check out sedit() in the Hmisc package Cheers! --- On Tue, 7/8/08, Kunzler, Andreas <[EMAIL PROTECTED]> wrote: > From: Kunzler, Andreas <[EMAIL PROTECTED]> > Subject: [R] Manipulate Data (with regular expressions) > To: r-help@r-project.org > Date: Tuesday, July 8, 2008, 7:11 AM > Dear Everyon