[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]] _

Re: [R] Nonlinear logistic regression fitting

2020-07-29 Thread Sebastien Bihorel via R-help
+ b*x/(c+x)". Correct? Thanks From: Duncan Murdoch Sent: Wednesday, July 29, 2020 16:04 To: Sebastien Bihorel ; J C Nash ; r-help@r-project.org Subject: Re: [R] Nonlinear logistic regression fitting Just a quick note about jargon: you are using the word &q

Re: [R] Nonlinear logistic regression fitting

2020-07-29 Thread Sebastien Bihorel via R-help
b*x/(c+x) From: Duncan Murdoch Sent: Wednesday, July 29, 2020 16:04 To: Sebastien Bihorel ; J C Nash ; r-help@r-project.org Subject: Re: [R] Nonlinear logistic regression fitting Just a quick note about jargon: you are using the word "likelihood" in

Re: [R] Nonlinear logistic regression fitting

2020-07-29 Thread Sebastien Bihorel via R-help
= df[,2:3], link = 'logit', mu = ~ p_a, pmu = c(a) ) emax_mod <- gnlm::bnlr( y = df[,2:3], link = 'logit', mu = ~ p_a + p_b*x/(p_c+x), pmu = c(a, b, c) ) int_mod emax_mod ____ From: J C Nash Sent: Tuesday, July 28, 2020 14:16 To: Sebast

Re: [R] Nonlinear logistic regression fitting

2020-07-28 Thread Sebastien Bihorel via R-help
From: Rui Barradas Sent: Tuesday, July 28, 2020 12:42 To: Sebastien Bihorel ; r-help@r-project.org Subject: Re: [R] Nonlinear logistic regression fitting Hello, glm might not be the right tool for the MM model but nls is meant to fit non-linear models. And, after an on-line search, there

Re: [R] Nonlinear logistic regression fitting

2020-07-28 Thread Sebastien Bihorel via R-help
I hardly see how your reply addressed my question or any part of it. It looks to me that it was simply assumed that I did not perform any search before posting. From: Bert Gunter Sent: Tuesday, July 28, 2020 11:30 To: Sebastien Bihorel Cc: r-help@r-project.org

Re: [R] Nonlinear logistic regression fitting

2020-07-28 Thread Sebastien Bihorel via R-help
11:12 To: Sebastien Bihorel Cc: r-help@r-project.org Subject: Re: [R] Nonlinear logistic regression fitting Search! ... for "nonlinear logistic regression" at rseek.org<http://rseek.org>. Bert Gunter "The trouble with having an open mind is that people keep coming along

[R] Nonlinear logistic regression fitting

2020-07-28 Thread Sebastien Bihorel via R-help
Hi I need to fit a logistic regression model using a saturable Michaelis-Menten function of my predictor x. The likelihood could be expressed as: L = intercept + emax * x / (EC50+x) Which I guess could be expressed as the following R model ~ emax*x/(ec50+x) As far as I know (please, correct

Re: [R] Creating file from raw connection

2020-05-29 Thread Sebastien Bihorel via R-help
Thanks Duncan From: Duncan Murdoch Sent: Friday, May 29, 2020 15:36 To: Sebastien Bihorel ; r-help@r-project.org Subject: Re: [R] Creating file from raw connection   On 29/05/2020 3:00 p.m., Sebastien Bihorel via R-help wrote: > Hi, > > Let's say I can extract the content of

[R] Creating file from raw content

2020-05-29 Thread Sebastien Bihorel via R-help
le, but my question would extend to any kind of binary file. Thank you in advance for your input 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

[R] Creating file from raw connection

2020-05-29 Thread Sebastien Bihorel via R-help
le, but my question would extend to any kind of binary file. Thank you in advance for your input Sebastien [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listi

Re: [R] POSIX system oddities

2020-03-29 Thread Sebastien Bihorel via R-help
Duh !!! Thanks. From: Peter Langfelder Sent: Sunday, March 29, 2020 20:12 To: Sebastien Bihorel Cc: r-help@r-project.org Subject: Re: [R] POSIX system oddities The time has changed from "standard" (EST) to "Daylight saving" (EDT) whic

[R] POSIX system oddities

2020-03-29 Thread Sebastien Bihorel via R-help
Hi, Why is there less number of seconds on 03/10/2019 in the internal POSIX system? The difference between the previous or the next day eems to be exactly 1 hour. I could not find anything in the manuals on CRAN. > dates <- as.POSIXct(sprintf('03/%s/2019',9:12), format = '%m/%d/%Y') > dates [1]

Re: [R] Can file size affect how na.strings operates in a read.table call?

2019-11-14 Thread Sebastien Bihorel via R-help
ional post-processing may be warranted. Thanks for the hints. From: William Dunlap Sent: Thursday, November 14, 2019 11:51 To: Jeff Newmiller Cc: Sebastien Bihorel ; r-help@r-project.org Subject: Re: [R] Can file size affect how na.strings operates in a read.t

Re: [R] Can file size affect how na.strings operates in a read.table call?

2019-11-14 Thread Sebastien Bihorel via R-help
The data file is a csv file. Some text variables contain spaces. "Check for extraneous spaces" Are there specific locations that would be more critical than others? From: Jeff Newmiller Sent: Thursday, November 14, 2019 10:52 To: Sebastien Bihorel ;

[R] Can file size affect how na.strings operates in a read.table call?

2019-11-14 Thread Sebastien Bihorel via R-help
Hi, I have this generic function to read ASCII data files. It is essentially a wrapper around the read.table function. My function is used in a large variety of situations and has no a priori knowledge about the data file it is asked to read. Nothing is known about file size, variable types, va

Re: [R] read.table and NaN

2019-10-25 Thread Sebastien Bihorel via R-help
nter Sent: Thursday, October 24, 2019 10:39 To: Sebastien Bihorel Cc: r-help@r-project.org Subject: Re: [R] read.table and NaN Not so. Read ?read.table carefully. You can use "NA" as a default. Moreover, you **specified** that you want NaN read as character, which means that any c

Re: [R] read.table and NaN

2019-10-24 Thread Sebastien Bihorel via R-help
Gunter Sent: Thursday, October 24, 2019 00:08 To: Sebastien Bihorel Cc: r-help@r-project.org Subject: Re: [R] read.table and NaN Like this? con <- textConnection(object = 'A,B\n1,NaN\nNA,2') > tmp <- read.table(con, header = TRUE, sep = ',', na.strings = &#

[R] read.table and NaN

2019-10-23 Thread Sebastien Bihorel via R-help
Hi, Is there a way to make read.table consider NaN as a string of characters rather than the internal NaN? Changing the na.strings argument does not seems to have any effect on how R interprets the NaN string (while is does not the the NA string) con <- textConnection(object = 'A,B\n1,NaN\nNA,

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

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
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

[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] 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

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-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

[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] 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] 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] 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] 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

[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

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.

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
>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-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

[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] 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] 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] 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

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
. - 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

[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] 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

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

[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] 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] 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] 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

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

[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] 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

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-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
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

[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

[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

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

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-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

[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

[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",

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

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

[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] .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

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_

[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] 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] 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

[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

[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] Difference of AIC computation between R (>2.12) and Splus (7.0.6) during stepwise GAM analysis

2012-05-11 Thread Sebastien Bihorel
so it behaves like the Splus function? Thank you in advance for your feedback and you time. 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/posting-gu

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

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

[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] 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-

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",

[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-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] 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

[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

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] 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] 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

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

[R] [R-pkgs] Release of optimbase, optimsimplex and neldermead packages

2010-05-07 Thread Sebastien Bihorel
in version 1.0-1 on CRAN. Any question, comment or feedback on those packages can be sent at: sb.pm...@gmail.com. Sebastien Bihorel [[alternative HTML version deleted]] ___ R-packages mailing list r-packa...@r-project.org https://stat.ethz.

[R] [R-pkgs] Release of the scaRabee package

2010-05-07 Thread Sebastien Bihorel
version 1.0. Any question, comment or feedback on this package is to be sent at: sb.pm...@gmail.com. Sebastien Bihorel [[alternative HTML version deleted]] ___ R-packages mailing list r-packa...@r-project.org https://stat.ethz.ch/mailman/listinfo/r

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] 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(

[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

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

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

[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] 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] 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

[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

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] 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] 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

  1   2   >