[R] Function Fstats and p value

2010-02-12 Thread sebastien
Hello, I used the function Fstats (in the package strucchange) and would like to transform the F probability given by Fstats in P value. This transformation can be made while making a plot, but I need to have the numerical P value which are ploted... and I can't find out how to do. Here a is an

[R] Issue of reproducibility with gam and lm.wfit in different versions of R

2017-10-23 Thread Sebastien Bihorel
object in R 3.3.2 while a valid model has been identified? Looking at the source of step.gam, the line 157 (if(is.null(form.list)) break) seems to be the reason the function breaks out and returns a NULL value. I thank you in advance for your time. Sebastien Bihorel library(gam) dat

[R] Equivalent of gtools::mixedsort in R base

2018-03-11 Thread Sebastien Bihorel
Hi, Searching for functions that would order strings that mix characters and numbers in a "natural" way (ie, "a1 a2 a10" instead of "a1 a10 a2"), I found the mixedsort and mixedorder from the gtools package. Problems: 1- mixedorder does not work in a "do.call(mixedorder, mydataframe)" call lik

Re: [R] Equivalent of gtools::mixedsort in R base

2018-03-12 Thread Sebastien Bihorel
So I take this is a no to my initial question. Cheers too. PS: some users just ask questions to get straight answers not to get a solution to their problem :D From: "Bert Gunter" To: "Sebastien Bihorel" Cc: "R-help" Sent: Monday, March 12, 201

Re: [R] Equivalent of gtools::mixedsort in R base

2018-03-12 Thread Sebastien Bihorel
Hi, Point taken... although this error is not returned in older version of R (3.1.2 does not have any issue with your test case... not sure when the added layer of check was introduced). From: "William Dunlap" To: "Sebastien Bihorel" Cc: r-help@r-project.org Se

Re: [R] Equivalent of gtools::mixedsort in R base

2018-03-12 Thread Sebastien Bihorel
Thanks for your reply. I take this is also a no to my question and appreciated the suggested mixedrank function and its usage with do.call. Thanks - Original Message - From: "Jeff Newmiller" To: "Bert Gunter" Cc: "Sebastien Bihorel" , "R-help"

Re: [R] Equivalent of gtools::mixedsort in R base

2018-03-13 Thread Sebastien Bihorel
Thanks. - Original Message - From: "Gabor Grothendieck" To: "Sebastien Bihorel" Cc: r-help@r-project.org Sent: Monday, March 12, 2018 3:49:10 PM Subject: Re: [R] Equivalent of gtools::mixedsort in R base split any mixed columns into letter and number columns and th

[R] Question about subset

2018-04-08 Thread Sebastien Bihorel
Hi, The help page for subset states "subset: logical expression indicating elements or rows to keep: missing values are taken as false." Before I try to re-invent the wheel, I would like to know if one of the base or recommended packages would contain a variant of the subset function that would

Re: [R] Question about subset

2018-04-10 Thread Sebastien Bihorel
(parse(text=cond2 x yz 1 1 a TRUE 3 NA a TRUE - Original Message - From: "S Ellison" To: "Sebastien Bihorel" Sent: Monday, April 9, 2018 8:31:55 AM Subject: RE: Question about subset > Before I try to re-invent the wheel, I would like to know if one

Re: [R] Question about subset

2018-04-10 Thread Sebastien Bihorel
Thanks. S. Elison provided a similar but apparently more general solution (see other post in thread). - Original Message - From: "David Winsemius" To: "Sebastien Bihorel" Cc: r-help@r-project.org Sent: Monday, April 9, 2018 12:33:41 AM Subject: Re: [R] Questio

[R] Calling the curve function with a character object converted into an expression

2018-05-02 Thread Sebastien Bihorel
Hi, Down a cascade of function calls, I want to use the curve function with an expression that is a variable. For various reason, this variable must be a character object and cannot be an expression as required by the curve function. How do I convert my variable into a expression that is accep

Re: [R] Calling the curve function with a character object converted into an expression

2018-05-03 Thread Sebastien Bihorel
Thanks, I always get confused by expression evaluation, when and how to use call, do.call, eval, parse/deparse, and all that good stuff. I always have to read documentation 10 times and still does not want to stick in my brain. - Original Message - From: "Bert Gunter" To:

[R] Porbably bug in panel.abline

2018-06-18 Thread Sebastien Bihorel
fficients: data <- data.frame(x=c(18,81), y=c(18,81)) ... panel.abline(c(99,-1.0), col=2) Thank you in advance for your feedback. Sebastien PS: the problem was also posted at https://github.com/deepayan/lattice/issues/8 __ R-help@r-project.org

Re: [R] Porbably bug in panel.abline

2018-06-18 Thread Sebastien Bihorel
No, the intercept a^2 f the abline is exactly the upper limit of the data, so it is in the range. From: "Bert Gunter" To: "Sebastien Bihorel" Cc: "R-help" Sent: Monday, June 18, 2018 2:28:21 PM Subject: Re: [R] Porbably bug in panel.abline Note that

Re: [R] Porbably bug in panel.abline

2018-06-18 Thread Sebastien Bihorel
Paul Murrell posted some comments on [ https://github.com/deepayan/lattice/issues/8 | https://github.com/deepayan/lattice/issues/8 ] - Original Message - From: "Bert Gunter" To: "Sebastien Bihorel" Cc: "R-help" Sent: Monday, June 18, 2018 4:15:29 PM Su

[R] as.POSIXct character string is not in a standard unambiguous format

2017-04-05 Thread Sebastien Moretti
Hi I have lots of issues when I try to install R 3.3.3 during the "make check" step. Every time a call to as.POSIXct is done in test scripts, I got the same error message: e.g. x <- as.POSIXct("2002-02-02 02:02") Error in as.POSIXlt.character(x, tz, ...) : character string is not in a stan

Re: [R] as.POSIXct character string is not in a standard unambiguous format

2017-04-05 Thread Sebastien Moretti
anything in the update notes. http://mirror.its.dal.ca/cran/doc/manuals/r-release/NEWS.html In the meantime, would it skirt your issue if you explicitly stated the format? x <- as.POSIXct("2002-02-02 02:02", format = "%Y-%m-%d %H:%M") Ben On Apr 5, 2017, at 11:21 AM

Re: [R] as.POSIXct character string is not in a standard unambiguous format

2017-04-06 Thread Sebastien Moretti
x <- as.POSIXct("2002-02-02 02:02", format = "%Y-%m-%d %H:%M") Ben On Apr 5, 2017, at 11:21 AM, Sebastien Moretti wrote: Hi I have lots of issues when I try to install R 3.3.3 during the "make check" step. Every time a call to as.POSIXct is

Re: [R] as.POSIXct character string is not in a standard unambiguous format

2017-04-06 Thread Sebastien Moretti
, "%Y-%m-%d %H:%M")) or Sys.setenv( TZ="Etc/GMT+5" ) instead of ambiguous x <- as.POSIXct("2002-02-02 02:02") Sébastien I cannot imagine a less desirable solution. This is the opposite of portable programming. -- Sent from my phone. Please excuse my brevity. On

[R] Question about function scope

2018-10-30 Thread Sebastien Bihorel
Hi, >From the R user manual, I have a basic understanding of the scope of function >evaluation but have a harder time understanding how to mess with environments. My problem can be summarized by the code shown at the bottom: - the foo function performs some steps including the assignment of defa

Re: [R] Question about function scope

2018-10-30 Thread Sebastien Bihorel
. - Original Message - From: "Duncan Murdoch" To: "Sebastien Bihorel" , r-help@r-project.org Sent: Tuesday, October 30, 2018 4:13:05 PM Subject: Re: [R] Question about function scope On 30/10/2018 3:56 PM, Sebastien Bihorel wrote: > Hi, > > From the R user manual, I

Re: [R] Question about function scope

2018-10-30 Thread Sebastien Bihorel
That's cool! I think this solution would fit better with what my intended setup. Thanks a lot - Original Message - From: "Duncan Murdoch" To: "Sebastien Bihorel" , r-help@r-project.org Sent: Tuesday, October 30, 2018 4:18:51 PM Subject: Re: [R] Question abo

Re: [R] Question about function scope

2018-10-30 Thread Sebastien Bihorel
Thanks a lot Eric, I think you are on the same page as Duncan (at least with his 2nd option). I will definitively explore this. From: "Eric Berger" To: "Duncan Murdoch" Cc: "Sebastien Bihorel" , "R mailing list" Sent: Tuesday, October 30, 20

[R] Encoding issue

2018-11-05 Thread Sebastien Bihorel
Hi, I am having problems getting similar output when processing the same markdown files on 2 different Linux systems (one is a laptop with Linux Mint 18.3, the other is a production server running on CentOS 7). I think this boils down to an encoding issue but I am not sure if this is a system-w

Re: [R] Encoding issue

2018-11-05 Thread Sebastien Bihorel
ointed out that the "râs" display could be a side-effect of encoding issue with Putty (which I used to connect to the remote server). Changing the setting of Putty display, I get the correct display "r’s"... However, that does not change anything to the gsub issue... Seb

[R] Diff'ing 2 strings

2019-01-05 Thread Sebastien Bihorel
Hi, Does R include an equivalent of the linux diff command? Ideally I would like to diff 2 fairly complex strings and extract the differences without having to save them on disk and using a system('diff file1 file2') command. Thanks Sebastien __

Re: [R] Diff'ing 2 strings

2019-01-09 Thread Sebastien Bihorel
f command which is smart enough to recognize these line chunks you mentioned and not just to a simple line-by-line comparison. I saw a few thread mentioning ?adist. I will look into that. Sebastien From: "Bert Gunter" To: "Sebastien Bihorel" Cc: "R-help" Sen

Re: [R] Diff'ing 2 strings

2019-01-10 Thread Sebastien Bihorel
>From which the diffobj package? From: "Martin Møller Skarbiniks Pedersen" To: "Sebastien Bihorel" Cc: "R mailing list" Sent: Thursday, January 10, 2019 2:35:15 AM Subject: Re: [R] Diff'ing 2 strings On Sat, Jan 5, 2019, 14:58 Sebast

Re: [R] Diff'ing 2 strings

2019-01-10 Thread Sebastien Bihorel
Yep, I did. Got nothing. It does not come with R 3.4.3, which is the version I can use. R CMD Rdiff comes with this version, but it is a shell command not a R function. It is meant for diff'ing R output. - Original Message - From: "Jeff Newmiller" To: r-help@r-project.

Re: [R] Diff'ing 2 strings

2019-01-10 Thread Sebastien Bihorel
Thanks for the clarification. - Original Message - From: "Duncan Murdoch" To: "Sebastien Bihorel" , "Jeff Newmiller" Cc: r-help@r-project.org Sent: Thursday, January 10, 2019 11:43:14 AM Subject: Re: [R] Diff'ing 2 strings On 10/01/2019 11:38 a.m.

[R] Stratifying data with xyplot

2019-03-11 Thread Sebastien Bihorel
types or the size of symbols. This frequently comes handy. My question is whether any work has been done in the lattice ecosystem to reproduce this functionality? If so, I would greatly appreciate any pointers to the appropriate package documentation. Thank you Sebastien

[R] How to list recursive package dependency prior to installation/upgrade of a package

2019-03-14 Thread Sebastien Bihorel
Hi Is there an elegant way to recursive list all dependencies of a package prior to its installation or upgrade? I am particularly interested in finding which of the packages currently installed in my test/production environment would require an upgrade prior to actual installation/upgrade of

Re: [R] How to list recursive package dependency prior to installation/upgrade of a package

2019-03-14 Thread Sebastien Bihorel
That is great! Is there a way to know version required in the dependent packages? From: "William Dunlap" To: "Sebastien Bihorel" Cc: r-help@r-project.org Sent: Thursday, March 14, 2019 3:50:58 PM Subject: Re: [R] How to list recursive package dependency prior to ins

[R] Can one perform a dry run of a package installation?

2019-04-09 Thread Sebastien Bihorel
Hi, Is there a way to do a dry run of install.packages() or update.packages() to simulate how an R environment would be modified by the installation or update of a particular set of packages (with their dependencies)? I am particularly interested in finding how dependencies would be recursivel

Re: [R] Can one perform a dry run of a package installation?

2019-04-10 Thread Sebastien Bihorel
Thanks - Original Message - From: "Duncan Murdoch" To: "Sebastien Bihorel" , r-help@r-project.org Sent: Tuesday, April 9, 2019 7:29:50 PM Subject: Re: [R] Can one perform a dry run of a package installation? On 09/04/2019 5:46 p.m., Sebastien Bihorel wrote: > Hi,

[R] Namespace problem with pre-R 3.0.0 package

2016-03-03 Thread Sebastien Moretti
Hi I have issues with an R package developed in 2004. It works perfectly in R < 3. It can be installed in R > 3 but functions are not in the namespace. Do you know a good - and simple - documentation to help me to solve that? I have already fixed some problems with R CMD check but remaining one

Re: [R] Namespace problem with pre-R 3.0.0 package

2016-03-03 Thread Sebastien Moretti
Le 03/03/2016 03:02 PM, Marc Schwartz a écrit : On Mar 3, 2016, at 7:40 AM, Sebastien Moretti wrote: Hi I have issues with an R package developed in 2004. It works perfectly in R < 3. It can be installed in R > 3 but functions are not in the namespace. Do you know a good - and

[R] .Call works in R 2 not in R 3

2016-03-08 Thread Sebastien Moretti
Hi I inherited a R package done in 2004 that works perfectly in R 2.15.1 and before, but not in R 3.2.2 ( >= 3). I have already fixed issues with namespace for functions in R 3 but maybe not all of them. Here is the error message: Error in .Call("R_cutree", tree$merge, k, PACKAGE = "stats")

Re: [R] .Call works in R 2 not in R 3

2016-03-08 Thread Sebastien Moretti
Hi I inherited a R package done in 2004 that works perfectly in R 2.15.1 and before, but not in R 3.2.2 ( >= 3). I have already fixed issues with namespace for functions in R 3 but maybe not all of them. Here is the error message: Error in .Call("R_cutree", tree$merge, k, PACKAGE = "stats") "R_

Re: [R] .Call works in R 2 not in R 3

2016-03-10 Thread Sebastien Moretti
n R call and not using .Call is the preferred solution. On Mar 8, 2016, at 14:55, Sebastien Moretti wrote: Hi I inherited a R package done in 2004 that works perfectly in R 2.15.1 and before, but not in R 3.2.2 ( >= 3). I have already fixed issues with namespace for functions in R 3 but

[R] Vertical boxplot with a continuous X axis

2017-02-23 Thread Sebastien Bihorel
Hi, Can the boxplot design illustrated in the post (http://stackoverflow.com/questions/39849459/how-to-create-boxplots-with-a-continuous-x-axis-in-r) be reproduced with lattice or a lattice-derived function? Thank you Sebastien __ R-help@r

Re: [R] Vertical boxplot with a continuous X axis

2017-02-24 Thread Sebastien Bihorel
Thanks for your reply - Original Message - From: "Bert Gunter" To: "Sebastien Bihorel" Cc: "R-help" Sent: Friday, February 24, 2017 2:01:36 AM Subject: Re: [R] Vertical boxplot with a continuous X axis Sebastien: The linked post is unclear: two of

Re: [R] Vertical boxplot with a continuous X axis

2017-02-24 Thread Sebastien Bihorel
Thanks for your reply - Original Message - From: "Richard M. Heiberger" To: "Sebastien Bihorel" Cc: "r-help" Sent: Friday, February 24, 2017 1:10:44 AM Subject: Re: [R] Vertical boxplot with a continuous X axis Yes, this is e

[R] Reshaping from long to wide with duplicate idvar and timevar

2017-03-13 Thread Sebastien Bihorel
Hi, I would like to reshape a data.frame from long to wide format. However, the reshape function does not seem to accept data containing rows with duplicate idvar and timevar. Building upon the ?reshape example: summary(Indometh) wide <- reshape(Indometh, v.names = "conc", idvar = "Subject",

[R] Problem with passing a string to subset

2009-08-21 Thread Sebastien Bihorel
c=rep(1:2,5)) > mystr<-"c==1" > subset(foo,c==1) a b c 1 1 10 1 3 3 8 1 5 5 6 1 7 7 4 1 9 9 2 1 > subset(foo,mystr) Error in subset.data.frame(foo, mystr) : 'subset' must evaluate to logical Any help would be greatly appreciated. Sebastien

Re: [R] Problem with passing a string to subset

2009-08-24 Thread Sebastien Bihorel
nd<- quote(c==1) subset(foo, eval(bquote(.(mycond))) ) HTH, baptiste 2009/8/21 Sebastien Bihorel : Dear R-users, The following question bothered me for the whole afternoon: how can one pass a string as the conditioning argument to subset? I tried plain mystr, eval(mystr), expression(mystr),

[R] combining grid.text, expression and variables

2009-09-02 Thread Sebastien Bihorel
Dear R-users, I am trying to use the grid.text and expression functions to display several character strings and plotmath text on a viewport. Some strings can include a variable portion (PI.limits in the following example), which I thought could be implemented by combining the bquote and the

Re: [R] combining grid.text, expression and variables

2009-09-02 Thread Sebastien Bihorel
it(1,"lines")) grid.text(eval(lab[2]), x=0.5, y=unit(1,"npc")-unit(2,"lines")) grid.text(eval(lab[3]), x=0.5, y=unit(1,"npc")-unit(3,"lines")) grid.text(lab[4], x=0.5, y=unit(1,"npc")-unit(4,"lines")) My preference goes for the

[R] Regular expression problem

2009-09-15 Thread Sebastien Bihorel
t I do not really understand why the last call of the following code do not work. Any help would be greatly appreciated. mystr <- "n.../mydir/myfile.mytype.myext" grep("mytype",mystr) # returns 1 grep("[.]*mytype",mystr) # returns 1 grep("n[.]

Re: [R] Regular expression problem

2009-09-15 Thread Sebastien . Bihorel
ss with a period. '.*' match zero, or >> more, characters. > > Perhaps the OP wants > > grep("n[.].*mytype",mystr) > > to insist that ``mystr'' contain the string ``n.'' (literal ``.'') > somewhere before the string ``mytype&#x

[R] Adjust lattice graph axis label on final page

2010-02-24 Thread Sebastien Bihorel
adjusted (e.g. in some template code). Any thought on this issue would be welcome. Sebastien library(lattice) mydata <- data.frame(x=rep(1:10,8), y=rep(1:10,8), id=rep(1:8,each=10)) xyplot(y~x|id,as.table=T,data=mydata,layout=c(

Re: [R] Adjust lattice graph axis label on final page

2010-02-26 Thread Sebastien Bihorel
Thanks Deepayan, This confirms what I thought I should do... One follow-up question about your suggested code: is it possible to create a lattice graph object myplot and modify the layout just for panel 7 and 8, rather than creating two graphs with different layouts? Sebastien Deepayan

[R] Passing expression as argument to do.call

2009-07-02 Thread Sebastien Bihorel
avoid that? Thanks you Sebastien foo <- list(x=1:10, y=1:10) mylist <- list(pch=6, col=2) title <- "1 microgram" title2 <- expression ("1 " mu "g") do.call(plot, c(foo, mylist, main=title)) class(c(foo, mylist, main=title2))

Re: [R] Passing expression as argument to do.call

2009-07-02 Thread Sebastien . Bihorel
Damned, I did tried as.list but not list... Thanks Hadley and Duncan for your quick replies > On Thu, Jul 2, 2009 at 3:34 PM, Sebastien > Bihorel wrote: >> Dear R-users, >> >> I would like to know how expressions could be passed as arguments to >> do.call >&

[R] Code improvement

2009-10-22 Thread Sebastien Bihorel
sible to store the fully formatted legend directly at its creation and then just 'print' the stored object within my legend viewport. Could anybody advise me on the process to follow to accomplish that or maybe a few functions to look at?

Re: [R] How to calculate the area under the curve

2009-10-22 Thread Sebastien Bihorel
Well, you can use the trapezoidal rule to numerically calculate any area under the curve. I don't know if a specific exists but you could create one. The principle is basically to compute the area between two successive points of your profile with: AREA=0.5*(Response1 + Response2)/(Time2-Time1)

Re: [R] Code improvement

2009-10-27 Thread Sebastien Bihorel
grid.pack took me some time, but now, it is working like a charm. Thank again to you (and to Paul Murrell for the grid package!) Sebastien baptiste auguie wrote: Hi, I don't know if it helps, but looking at the output of xyplot you can extract the legend (a grid.frame) as follows, library

[R] How to concatenate expressions

2009-11-20 Thread Sebastien Bihorel
Dear R-users, I am developing a plotting function, which receives expressions and character/numerical vectors as part of the many input arguments and which tries to concatenate them before displaying the result to the plot. I currently cannot find a way to make this concatenation works. I hav

Re: [R] How to concatenate expressions

2009-11-20 Thread Sebastien Bihorel
Thanks a bunch, Baptiste, Your lapply call works like a charm. BTW, it works also if a, b, and c are expressions :D Sebastien baptiste auguie wrote: Hi, You can try this, though I hope to learn of a better way to do it, a = c(quote(alpha),quote(beta),quote(gamma)) b = lapply(1:3, function

[R] Passing arguments to gpar

2009-12-03 Thread Sebastien Bihorel
Dear R-users, I would like to know how to pass arguments to gpar() without hard-coding them. I tried to store my arguments in a list and passed this list to gpar(), but it did find the way to do it properly. Any help would be appreciated. a<- list(fontisze=8,col=3) gpar(fontsize=8,col=3) gpa

[R] Source code for some grid package documentation

2009-12-04 Thread Sebastien Bihorel
Dear R-users, I was wondering if anybody would have the source code used to create the last figure in the frame.pdf documentation distributed with the grid package. Thanks in advance. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailma

Re: [R] Source code for some grid package documentation

2009-12-04 Thread Sebastien Bihorel
Thank you Romain, I appreciate the help. Romain Francois wrote: On 12/04/2009 04:28 PM, Sebastien Bihorel wrote: Dear R-users, I was wondering if anybody would have the source code used to create the last figure in the frame.pdf documentation distributed with the grid package. > file.s

[R] Apparent different in symbol scaling between xyplot and grid.points

2009-12-04 Thread Sebastien Bihorel
Dear R-users, For the past few days, I have been trying to find the reason why some of my plots were showing symbols of different sizes, while I thought I was using the same .cex arguments everywhere. The problem is exemplified by the following example code where the xyplot and grid.points fun

Re: [R] Apparent different in symbol scaling between xyplot and grid.points

2009-12-04 Thread Sebastien Bihorel
uot;), y=unit(0.5, "npc"))) lplot.xy(data.frame(x=0.55,y=0.5),type="p", pch=3) grid.points(x=0.45,y=0.5, pch=3, gp=gpar(col="red")) HTH, baptiste 2009/12/4 Sebastien Bihorel : Dear R-users, For the past few days, I have been trying to find the reason why some of m

Re: [R] Passing arguments to gpar

2009-12-07 Thread Sebastien Bihorel
Hi, Yes, that is exactly it. Charlie Sharpsteen gave me the same solution last week but he probably just replied to me, so his email did not go to the list. Thanks for the reply, I appreciate it I always forget about this do.call function. Paul Murrell wrote: Hi Sebastien Bihorel

[R] Problem with viewports, print.trellis and more/newpage

2009-05-14 Thread Sebastien Bihorel
The following script is a simplification but hopefully will suffice to illustrate my problem. Any suggestion from the list would be greatly appreciated. Sebastien # library(lattice) foo <- data.frame(x=1:10,y=1:10) for (i in 1:4) { #isnewpage <- FALSE plots <- xyplo

Re: [R] Problem with viewports, print.trellis and more/newpage

2009-05-15 Thread Sebastien . Bihorel
"titlevw") grid.text(label = "test", just = c("centre","centre"), gp = gpar(fontsize = 10, font = 2)) } > On Thu, May 14, 2009 at 1:58 PM, Sebastien Bihorel > wrote: >> Dear R-users, >> >> I have got th

[R] lattice strip argument check

2009-05-22 Thread Sebastien Bihorel
ion(...) strip.default(...,strip.names=c(TRUE,TRUE))) {} Thanks for your help -- *Sebastien Bihorel, PharmD, PhD* PKPD Scientist Cognigen Corp Email: sebastien.biho...@cognigencorp.com <mailto:sebastien.biho...@cognigencorp.com> Phone: (716) 633-3463

[R] How to force axis to have the same range

2009-04-20 Thread Sebastien Bihorel
combinations of asp and pin value, but could not get what I wanted.. Thank you in advance for your help Sebastien __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org

Re: [R] RES: How to force axis to have the same range

2009-04-22 Thread Sebastien Bihorel
Thanks to all the people who answer my question. It is know clear to know how to produce a square shape graph... but I guess there is no easy way to force the x and the y axis to have the same limits. *Sebastien* Rodrigo Aluizio wrote: Hi Sebastien, take a look at the par(pty='s'

Re: [R] RES: How to force axis to have the same range

2009-04-24 Thread Sebastien Bihorel
Thanks to Greg and Deepayan for their answers. *Sebastien Bihorel, PharmD, PhD* PKPD Scientist Cognigen Corp Email: sebastien.biho...@cognigencorp.com <mailto:sebastien.biho...@cognigencorp.com> Phone: (716) 633-3463 ext. 323 Greg Snow wrote: For variables named my.x and my.y try:

[R] Understanding padding in lattice

2009-04-28 Thread Sebastien Bihorel
be greatly appreciated. Sebastien ### library(lattice) foo <- data.frame(x=rep(seq(10),9),y=rep(seq(10),9),z=rep(0,90),id=rep(seq(9),each=10)) plot1 <- xyplot(y+z~x|id, data=foo, type=c("p","l"), distribute.type

Re: [R] Understanding padding in lattice

2009-04-29 Thread Sebastien Bihorel
Thanks *Sebastien Bihorel, PharmD, PhD* PKPD Scientist Cognigen Corp Email: sebastien.biho...@cognigencorp.com <mailto:sebastien.biho...@cognigencorp.com> Phone: (716) 633-3463 ext. 323 Deepayan Sarkar wrote: On Tue, Apr 28, 2009 at 11:51 AM, Sebastien Bihorel wrote: Dear R-use

[R] Evaluation of an expression as function argument

2009-04-29 Thread Sebastien Bihorel
to other functions. ## items <- c(expression(col=2),expression(pch=2)) for (in in seq(2)) { plot(1:10, eval(items[i])) } ## Thanks in advance for your input. Sebastien __ R-help@r-project.org mail

Re: [R] Evaluation of an expression as function argument

2009-04-30 Thread Sebastien Bihorel
Thanks Uwe and Baptiste *Sebastien Bihorel, PharmD, PhD* PKPD Scientist Cognigen Corp Email: sebastien.biho...@cognigencorp.com <mailto:sebastien.biho...@cognigencorp.com> Phone: (716) 633-3463 ext. 323 Uwe Ligges wrote: Sebastien Bihorel wrote: Dear R-users, I would like to know

Re: [R] Understanding padding in lattice

2009-04-30 Thread Sebastien Bihorel
Thanks Paul, This function could indeed be helpful. Unfortunately, I cannot install a development version at work, so I will have to wait before using it :D Sebastien Paul Murrell wrote: Hi In the development version of R, there is a new showViewport() function that might help with

[R] Control the variable order after multiple declarations using within

2019-07-03 Thread Sebastien Bihorel
declared: > df <- data.frame(a=1) > within(df, {b<-a*2; c<-b*3}) a c b 1 1 6 2 Is there a way to insert the variables in an order consistent with the order of declaration (ie, a, b, c)? Thanks Sebastien __ R-help@r-project.o

Re: [R] Control the variable order after multiple declarations using within

2019-07-03 Thread Sebastien Bihorel
Hi Kevin, I was hoping to stay within base R functionality. Thanks - Original Message - From: "Kevin Thorpe" To: "Sebastien Bihorel" Cc: "R Help Mailing List" Sent: Wednesday, July 3, 2019 8:11:51 AM Subject: Re: [R] Control the variable order aft

Re: [R] Control the variable order after multiple declarations using within

2019-07-03 Thread Sebastien Bihorel
Hi Eric, I was hoping to avoid post-processing the result of the within call. Sebastien From: "Eric Berger" To: "Sebastien Bihorel" Cc: "R mailing list" Sent: Wednesday, July 3, 2019 8:13:22 AM Subject: Re: [R] Control the variable order after multiple d

Re: [R] Control the variable order after multiple declarations using within

2019-07-04 Thread Sebastien Bihorel
Thanks all for your inputs. - Original Message - From: "Duncan Murdoch" To: "Jeff Newmiller" , r-help@r-project.org, "Eric Berger" , "Richard O'Keefe" Cc: "Sebastien Bihorel" Sent: Wednesday, July 3, 2019 12:52:55 PM Sub

[R] Problem with save/load across R versions and OS

2019-07-17 Thread Sebastien Bihorel
? Thanks Sebastien __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self

Re: [R] Problem with save/load across R versions and OS

2019-07-17 Thread Sebastien Bihorel
Hi, Yes, I tried save/load... same failure. But I did not yet try dump/source or dput/dget. I will From: "Bert Gunter" To: "Sebastien Bihorel" Cc: "R-help" Sent: Wednesday, July 17, 2019 10:27:24 AM Subject: Re: [R] Problem with save/load across R versi

Re: [R] Problem with save/load across R versions and OS

2019-07-17 Thread Sebastien Bihorel
. I tried but I could not find the way to properly write and read the serialized object. Thanks - Original Message - From: "Duncan Murdoch" To: "Sebastien Bihorel" , r-help@r-project.org Sent: Wednesday, July 17, 2019 10:42:13 AM Subject: Re: [R] Problem with save/lo

Re: [R] Problem with save/load across R versions and OS

2019-07-17 Thread Sebastien Bihorel
rdoch" To: "Sebastien Bihorel" Cc: r-help@r-project.org Sent: Wednesday, July 17, 2019 3:04:46 PM Subject: Re: [R] Problem with save/load across R versions and OS On 17/07/2019 2:02 p.m., Sebastien Bihorel wrote: > Hi, > > Indeed the S4 object is a class provided by a co

[R] Release of rclipboard 0.2.0

2023-10-21 Thread Sebastien Bihorel
Hi, Version 0.2.0 of rclipboard has been released to CRAN. This provides a minor update of the underlying js library and a support for display of `bslib::tooltip` for Shiny apps built with `bslib` package. Enjoy! [[alternative HTML version deleted]] _

[R] Capturing warnings with capture.output

2013-09-05 Thread Sebastien Bihorel
age. I don't know how to work with this class and I would appreciate any advise on how to process this type of object. Again, the goal is to store both call and message in the output of the withWarnings function. Thank you Sebastien __ R-help@r-p

[R] Working with Oracle large objects in R

2014-06-19 Thread Sebastien Bihorel
Hi, I was wondering if anybody could share their experience with interfacing R with Oracle databases for extraction of large objects. I would be more specifically interested in how to extract large objects storing big text files. Thank you Sebastien

Re: [R] grayscale wireframe??

2010-07-07 Thread Sebastien Guyader
With grDevices package, I do the following to generate a greyscale: newcols <- colorRampPalette(c("white", "black")) #generates palette from white to black #OR newcols <- colorRampPalette(c("grey90", "grey10")) #generates palette frome light to dark grey for better visibility Then in the wir

Re: [R] how to draw the legend about color from 3d picture

2010-07-07 Thread Sebastien Guyader
It may not help the original poster, but here's a solution based on what Greg said above: # Load plotrix library(plotrix) # Create a new layout to divide the graphics in 2, the first one (displaying the persp() graph) being 4 times larger than the second one (displying the legend) layout(matrix

[R] Custom nonlinear self starting function w/ 2 covariates

2010-07-12 Thread Sebastien Guyader
Hello, I'm trying to adjust a non linear model in which the biological response variable (ratio of germinated fungus spores) is dependent on 2 covariates (temperature and time). The response to temperature is modeled by a kind of beta function with 2 parameters (optimal and maximum temperatures)

Re: [R] Custom nonlinear self starting function w/ 2 covariates

2010-07-13 Thread Sebastien Guyader
's good that it works with nlme. Sebastien Guyader wrote: > > Hello, > > I'm trying to adjust a non linear model in which the biological response > variable (ratio of germinated fungus spores) is dependent on 2 covariates > (temperature and time). The response to te

[R] issue with Matrix package

2010-10-22 Thread Bernard SEBASTIEN
I have an issue with Matrix package. When I try to load it (with R version 2.10.1 with Windows XP) I have an error message in return: Error in registerS3method(Info[i, 1], Info[i, 2], Info[i, 3], env) : aucun slot de nom "methods" pour cet objet de la classe "derivedDefaultMethod" any idea o

[R] R command execution from shell

2011-01-04 Thread Sebastien Bihorel
Dear R-users, Is there a way I can ask R to execute the "write("hello world",file="hello.txt")" command directly from the UNIX shell, instead of having to save this command to a .R file and execute this file with R CMD

Re: [R] R command execution from shell

2011-01-04 Thread Sebastien Bihorel
Thank you That is exactly what I was looking for. Sebastien Duncan Murdoch wrote: On 04/01/2011 3:21 PM, Sebastien Bihorel wrote: Dear R-users, Is there a way I can ask R to execute the "write("hello world",file="hello.txt")" command directly from the UNIX sh

[R] Stop and call objects

2011-01-05 Thread Sebastien Bihorel
stop function using call.=F. How can I coerce a call object to a character and maintain the "aspect" of the printed call (i.e. "sum(x)" instead of the character vector "sum" "x" returned by as.character(e$call))? Thank you Sebastien _

Re: [R] R command execution from shell

2011-01-05 Thread Sebastien Bihorel
Thank you for this alternative. Both seem to work on my systems. Sebastien Prof Brian Ripley wrote: On Tue, 4 Jan 2011, Duncan Murdoch wrote: On 04/01/2011 3:21 PM, Sebastien Bihorel wrote: Dear R-users, Is there a way I can ask R to execute the "write("hello world",

Re: [R] Stop and call objects

2011-01-06 Thread Sebastien Bihorel
Well, the goal is to include a reference to f2 in the error message returned by f2('char'); sys.call(1) appears to do the trick. You mentioned this function could be unreliable, could you please provide an example? Sebastien William Dunlap wrote: >> -Original Message-

[R] Global variables

2011-01-06 Thread Sebastien Bihorel
Dear R-users, Is there a way I can prevent global variables to be visible within my functions? Sebastien __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org

Re: [R] Global variables

2011-01-10 Thread Sebastien Bihorel
Thank Gabor and Duncan, That will be helpful. Gabor Grothendieck wrote: > On Thu, Jan 6, 2011 at 4:59 PM, Duncan Murdoch > wrote: > >> On 06/01/2011 4:45 PM, Sebastien Bihorel wrote: >> >>> Dear R-users, >>> >>> Is there a way I can

Re: [R] Global variables

2011-01-11 Thread Sebastien Bihorel
Thanks, I will have a look at it. Sebastien Michael Bedward wrote: Hi Sebastian, You might also find the proto package useful as a way of restricting the scope of variables. It provides a more intuitive (at least to me) way of packaging variables and functions up into environments that can

  1   2   >