[R] Only one label from axis() is shown

2025-05-28 Thread Marc Girondot via R-help
Can someone explain me why in the second example, only one label is shown ? Thanks a lot Marc atT <- structure(c(1672520400, 1675198800, 1677618000, 1680296400, 1682888400,     1685566800, 1688158800, 1690837200, 1693515600, 1696107600, 1698786000,     1701378000, 1704056

Re: [R] Why is there no macro facility for R?

2025-05-22 Thread Marc Schwartz via R-help
-project.org/articles/RN-2001-021/RN-2001-021.pdf Bert is correct about the 20+ year time frame… :-) Regards, Marc Schwartz > On May 22, 2025, at 10:32 PM, Bert Gunter wrote: > John: > 1. You might get a better response if you could give at least a couple of > use case examples of w

[R] Error when loading optimx package and a solution

2025-02-05 Thread Marc Girondot via R-help
nlopt Here are the steps to produce the error and a solution to solve it. Some parts are in French. I don't know how to "ask" to R to not use French for some system messages. Marc > library("optimx") Erreur : le chargement du package ou de l'espace de noms a

Re: [R] Installing R and RStudio - Contact Software Manufacturer Error URGENT

2025-01-15 Thread Marc Schwartz via R-help
Posit, the publishers of that application via their support site, if the error is from their application and not R itself. https://support.posit.co/ Regards, Marc Schwartz > On Jan 15, 2025, at 1:46 PM, Steven Ellis wrote: > > Hi Eliana, > > What model Mac are you

Re: [R] Confirmation of no Electronic Communication functionality

2024-12-13 Thread Marc Schwartz via R-help
released and supported version of R would be in your best interest. Regards, Marc Schwarzt > On Dec 13, 2024, at 10:45 AM, Jeff Newmiller via R-help > wrote: > > R is a programming language. If you program it to communicate, it will. Also, > it is designed to work with u

Re: [R] Get a copy of a matrix only for TRUE entries of a matching size boolean matrix?

2024-05-03 Thread Marc Girondot via R-help
> ifelse(mat_bools, mat_letters, "") [,1] [,2] [1,] ""   "B" [2,] "C"  "" > ifelse(mat_bools, mat_letters, NA) [,1] [,2] [1,] NA   "B" [2,] "C"  NA Marc Le 03/05/2024 à 14:47, DynV Montrealer a écrit : > Is

Re: [R] Looping

2024-02-19 Thread Marc Girondot via R-help
: library("HelpersMG") data_list <- read_folder(folder=".", file=paste0("data", as.character(1:24),".csv"), read=read.csv) data_df <-   do.call("rbind", data_list) Marc Le 19/02/2024 à 04:27, Steven Yen a écrit : I need to read csv files repeate

[R] Try reproduce glmm by hand

2023-12-02 Thread Marc Girondot via R-help
follow glmer but it is very complicated code! Thanks for any help. Marc # Generate set of df with nb successes and failures # and ID being A, B or C (the random effect) # and x being the fixed effect set.seed(1) df <- rbind(matrix(data = c(sample(x=5:30, size=40, replace = TRUE), rep(10,

Re: [R] creating a time series

2023-10-16 Thread Marc Girondot via R-help
Why did you expect to have 177647 elements ? I found that 177642 is the correct number: Marc baslangic <- as.POSIXct("2017-11-02 13:30:00", tz = "CET") bitis <- as.POSIXct("2022-11-26 23:45:00", tz = "CET")  # zaman_seti <- seq.POSIXt(from =

Re: [R] overlay shaded area in base r plot

2023-09-19 Thread Marc Girondot via R-help
Dear Ani, A solution using my CRAN package HelpersMG; note that yellow is a difficult color to manage correct overlay. It is easier to use red. mean1 <- c(122.194495954369, 118.955256282505, 115.540991140893, 113.116216840647,   111.24053267553, 109.827890459103, 108.523652505026, 107.03318302

[R] only install.packages with type="source" will install packages

2023-09-14 Thread Marc Girondot via R-help
ps a record of temporary installation path * DONE (insight) Les packages source téléchargés sont dans     ‘/private/tmp/RtmpA4I8sr/downloaded_packages’ Then update.packages() does not return insight package. Have you an idea of what's happened ? Thanks Marc __

Re: [R] Timezone question

2023-08-17 Thread Marc Schwartz via R-help
would suggest reading the relevant help files for ?strptime and the above two functions. Regards, Marc Schwartz -Original Message- From: R-help mailto:r-help-boun...@r-project.org>> on behalf of Dennis Fisher mailto:fis...@plessthan.com>> Date: Thursday, August 17, 202

Re: [R] R Tools Security Posture

2023-05-17 Thread Marc Schwartz via R-help
Hi, An additional resource that was not listed below is the R Software Development Life Cycle (SDLC) document that is available here:   https://www.r-project.org/certification.html which addresses a subset of the issues raised. Regards, Marc Schwartz On May 17, 2023 at 4:52:27 AM, Ivan

Re: [R] PROP_TEST function from INFER package

2023-05-15 Thread Marc Schwartz via R-help
page for the prop_test() function in the infer package, where 'x' is supposed to be a data frame, not a vector, and there is no 'n' argument. Regards, Marc Schwartz On May 15, 2023 at 7:26:16 AM, alfredo.rocc...@fastwebnet.it (alfredo.rocc...@fastwebnet.it

Re: [R] converting to date object...

2023-04-12 Thread Marc Schwartz via R-help
late them as dates and perform various operations on them. You can then use format() to alter the output format as you may need for other purposes, in which case, the formatted output is coerced back to a character vector, even though the internal storage is still a Date class object. Regards,

Re: [R] Simple Stacking of Two Columns

2023-04-03 Thread Marc Schwartz via R-help
e)[, 1, drop = FALSE]   values 1    Tom 2   Dick 3  Larry 4  Curly which returns a data frame with a single column named 'values'. Regards, Marc Schwartz On April 3, 2023 at 11:08:59 AM, Sparks, John (jspa...@uic.edu (mailto:jspa...@uic.edu)) wrote: > Hi R-Helpers, > > Sorr

Re: [R] Count matrix of GSE146049

2023-04-02 Thread Marc Girondot via R-help
Dear Anas Jamshed, This is a list for R, not for specific genomic question using R. You will have more chance to have answers using a genomic list. And when you ask question, it is better to not use abbreviation that only people from that field will understand: TMM ? Marc Le 02/04/2023 à

Re: [R] MLE Estimation of Gamma Distribution Parameters for data with 'zeros'

2023-01-19 Thread Marc Girondot via R-help
e as 0 is impossible with gamma distribution. Marc Le 19/01/2023 à 12:49, peter dalgaard a écrit : Not necessarily homework, Bert. There's a generic issue with MLE and rounded data, in that gamma densities may be 0 at the boundary but small numbers are represented as 0, making the log-

Re: [R] setting timezone variable permanently...

2022-12-07 Thread Marc Girondot via R-help
You can create a file .Rprofile in your home directory with this command. Each time you will open R, it will run this command. https://support.posit.co/hc/en-us/articles/360047157094-Managing-R-with-Rprofile-Renviron-Rprofile-site-Renviron-site-rsession-conf-and-repos-conf Marc Le 07/12/2022

Re: [R] A Request

2022-06-21 Thread Marc Girondot
c("3", "4"), c("B", "D")) > dimnames(a) <- dn Erreur dans `dimnames<-.data.frame`(`*tmp*`, value = list(c("3", "4"), c("B",  :   'dimnames' incorrect pour ce tableau de données Marc Le 21/06/2022 à 15:09,

Re: [R] (Off-Topic) Time for a companion mailing list for R packages?

2022-01-13 Thread Marc Schwartz via R-help
. Certainly, if there is a bug or a reasonable suspicion of one in a third party package, the package maintainer should be the primary point of contact. Regards, Marc Schwartz Eric Berger wrote on 1/13/22 12:25 PM: Re: constructive criticism to make this list more useful to more

Re: [R] compiling from source on RedHat 8

2021-12-31 Thread Marc Schwartz via R-help
/Fedora R maintainers are active on that list. They can give you guidance on compiling R from source, if you really need to do that, or to suggest that you use the existing RPMs for R that they maintain and make available. Regards, Marc Schwartz kap4lin wrote on 12/31/21 12:38 PM: Hi, Before

[R] Creating NA equivalent

2021-12-20 Thread Marc Girondot via R-help
s.LDL() or is.UDL(). Note that NA is not the same than LDL or UDL: NA represent missing data. Here the data is available as LDL or UDL. NA is built in R language very deep... any option to create new version  of NA-equivalent ? Thanks Marc _

Re: [R] Current R color chart

2021-11-12 Thread Marc Schwartz via R-help
, type, ...) : invalid color name 'FF3030' versus: plot(1:10, col = "#FF3030") the latter which includes the '#' and works to generate the plot. Otherwise, as Avi apparently replied separately, use colors() or colours() to see the actual color text names and ?colors fo

Re: [R] Which version of R install for mac

2021-11-05 Thread Marc Schwartz via R-help
XQuartz, which is available here: https://www.xquartz.org Regards, Marc Schwartz Mark Don Young wrote on 11/5/21 10:59 AM: I am having trouble finding a version of R install compatible with my mac. I have an older Macbook pro 2016 with the latest version of Big Slur 11.6. Intel core i5 2.9 Ghz

Re: [R] generate random numeric

2021-10-29 Thread Marc Schwartz via R-help
prior to the relevant function call can enable that. Also, review the resources at https://www.random.org for additional references on the differences between PRNGs and other implementations, especially if you might need something closer to a "true&qu

Re: [R] I'd like to request that my R CRAN package is not tested on Solaris OS

2021-10-22 Thread Marc Schwartz via R-help
N. I would suggest that you contact them using the e-mail address above, without the deadline, and afford them the opportunity to reply to you with what may be reasonable next steps given the issues you face. Regards, Marc Schwartz Eric Berger wrote on 10/22/21 9:01 AM: Hi Lampros, I can

Re: [R] Do not show a "message d'avis" that qbeta reports

2021-10-21 Thread Marc Girondot via R-help
re is something strange: > warning("Essai") Message d'avis : Essai > Sys.setenv(LANG = "en") > warning("Essai") Warning message: Essai Thanks a lot to the translation team for their great work. Marc Le 21/10/2021 à 07:38, SciViews a écrit : Martin Mae

Re: [R] Do not show a "message d'avis" that qbeta reports

2021-10-20 Thread Marc Girondot via R-help
Thanks ! It works. So "Warnings" has been translated in French by "Message d'avis :" ! > warning("Essai") Message d'avis : Essai It is not the best translation... I would prefer: "Attention: " Marc Le 20/10/2021 à 12:28, Enrico Schumann a é

[R] Do not show a "message d'avis" that qbeta reports

2021-10-20 Thread Marc Girondot via R-help
t see the messages). Thanks Marc Girondot q <- qbeta(p=c(0.025, 0.975), shape1 = 3.3108797, shape2 = 0.001) Message d'avis : Dans qbeta(p = c(0.025, 0.975), shape1 = 3.3108797, shape2 = 1e-07) :   qbeta(a, *) =: x0 with |pbeta(x0,*) - alpha| = 0.024997 is not accurate suppre

[R] Good practice for database with utf-8 string in package

2021-09-16 Thread Marc Girondot via R-help
164-171." Then I have no NOTES when I checked the package with database in UNIX... but how can I print the reference back with original characters ? Thanks a lot to point me to best practices to include databases with non-ASCII characters and not have NOTES while submitte

Re: [R] Sample size Determination to Compare Three Independent Proportions

2021-08-10 Thread Marc Schwartz via R-help
er consulting with other local statistical expertise, as may be apropos, in the prospective study design, possibly influenced by other relevant/similar research in your domain. You can easily modify the above function for the two-group scenario as well, and I will leave that to you. Regards, M

Re: [R] Sample size Determination to Compare Three Independent Proportions

2021-08-09 Thread Marc Schwartz via R-help
vel, given that your a priori assumptions are valid. Regards, Marc Schwartz AbouEl-Makarim Aboueissa wrote on 8/9/21 9:41 AM: Dear All: good morning *Re:* Sample Size Determination to Compare Three Independent Proportions *Situation:* Three Binary variables (Yes, No) Three independent populatio

Re: [R] Data is not properly written in csv file

2021-06-21 Thread Marc Schwartz via R-help
?write.table and take note of the default arguments that are used for write.csv(), as noted in the CSV Files section, and in the Examples. Regards, Marc Schwartz Sri Priya wrote on 6/20/21 11:03 AM: Dear R Users, I am working on extracting tables from PDF and I am writing that in a csv file. When I

Re: [R] Crashes while pasting a graphic to clipboard on Windows

2021-06-21 Thread Marc Schwartz via R-help
this would be. Regards, Marc Schwartz Gabriel Toro wrote on 6/21/21 4:19 PM: I am using version 3.6.3 on Windows. I recently noticed that R crashes when pasting graphics to the clipboard (both as metafiles and as images). I saw some old (~ 2 years old) references to the problem on Google, b

Re: [R] R grep question

2021-05-27 Thread Marc Schwartz via R-help
E or FALSE, as Rui noted, thus: CRC$MMR.gene <- ifelse(grepl("MLH1|MSH2",CRC$gene.all), "Yes", "No") should work. Regards, Marc Schwartz Kai Yang via R-help wrote on 5/27/21 11:23 AM: Hi Rui,thank you for your suggestion. but when I try the solution, I got messa

Re: [R] CentOS 8: installing R

2021-05-24 Thread Marc Schwartz via R-help
plies. Regards, Marc Schwartz Roger Bos wrote on 5/24/21 3:41 PM: Dear all, I seem to be having an impossible time install R on my centos 8 virtual machine (I know centos 8 is no longer maintained, but it is a work server so I have no choice in the matter.). I installed EPEL and enabled Power

[R] [R-pkgs] New CRAN Package: BI - Generate James (1996) and Bang (2004) Blinding Indexes

2021-05-17 Thread Marc Schwartz via R-packages
regards, Marc Schwartz ___ R-packages mailing list r-packa...@r-project.org https://stat.ethz.ch/mailman/listinfo/r-packages __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https

Re: [R] Error loading "XLConnect" library

2021-04-14 Thread Marc Schwartz via R-help
nications first. Regards, Marc Schwartz Bernard McGarvey wrote on 4/14/21 1:42 PM: I installed the "XLConnect" package which appears to be successful and then tried to load the "XLConnect" library and got an error as shown below. Any ideas as to where to look for the source of th

Re: [R] Plot histogram and lognormal fit on the same time

2021-01-21 Thread Marc Girondot via R-help
f$estimate["meanlog"], sdlog = f$estimate["sdlog"])*400 ) library(HelpersMG) m <- modeled.hist(breaks=histdata$breaks, FUN=plnorm, � meanlog = f$estimate["meanlog"], sdlog = f$estimate["sdlog"], sum = 100) points(m$x, m$y, pch=19

Re: [R] Help with changing date format in R

2021-01-20 Thread Marc Schwartz via R-help
d$date <- ifelse(d$observer %in% c(vector, of, observers), as.Date(d$date, format = "%d%m%Y"), as.Date(d$date, format = "%m%d%Y")) Also, you might not want to overwrite the original values, and create a new column, in the case of errors

Re: [R] Readxl on Mac

2020-12-01 Thread Marc Schwartz via R-help
he file is not in use by Excel or another application, precluding an exclusive lock on the file. If so, close out the other application. Another possibility is that the Excel file is password protected, and thus cannot be read directly, without saving it in an unprotected fashion. Regards, Marc

[R] [R-pkgs] WriteXLS Version 6.1.0 - Bug Fix Release

2020-11-25 Thread Marc Schwartz via R-packages
written to the Excel worksheets as left justified text values, as opposed to right justified numeric values. Please download and install the updated version at your convenience. Thanks and regards, Marc Schwartz ___ R-packages mailing list r-packa...@r

Re: [R] Inappropriate color name

2020-11-20 Thread Marc Roos
And how would that relevant? > >Looks like they do better than us in some aspects. > > > >> >> > Remember that github stopped using the term "master" to describe >> > the >> main branch of a repository for example. >> >> Github is some sort of national language institute, with a bo

Re: [R] [EXT] Re: Inappropriate color name

2020-11-20 Thread Marc Roos
> Remember that github stopped using the term "master" to describe the main branch of a repository for example. Github is some sort of national language institute, with a board of literary, sociology, psychology professors? Afaik is github owned by Microsoft, and Microsoft is known to be an

Re: [R] [EXT] Re: Inappropriate color name

2020-11-20 Thread Marc Roos
>name since it conveys the wrong indication of its purpose. But the >word 'racist' in itself is not offensive. The act of being racist is >offensive and wrong. Purging the word 'racist' won't help rid the >world of racism. Indeed, if you would go down this road, where does it stop? You wo

Re: [R] analyzing results from Tuesday's US elections

2020-11-18 Thread Marc Roos
Maybe this could be interesting to verify against found anomalies? "A second memory card with uncounted votes was found during an audit in Fayette County, Georgia, containing 2,755 votes" https://www.zerohedge.com/political/second-memory-card-2755-votes-found-during-georgia-election-audit-decre

Re: [R] How to pass a character string with a hyphen

2020-11-17 Thread Marc Schwartz via R-help
that the API that you are passing the character vector to may be parsing/evaluating the '-' and only seeing the first part of the passed value. So, for example: > shQuote("-") [1] "'-'" See if that works. Regards, Marc Schwartz &

Re: [R] Language environment

2020-11-17 Thread Marc Schwartz via R-help
rstudio.com/ as they are a separate product from R itself. It sounds like there may be somewhat different session startup processes for RStudio, and they would be the best resource to assist you. Regards, Marc Schwartz __ R-help@r-project.org mailing

Re: [R] analyzing results from Tuesday's US elections

2020-11-09 Thread Marc Roos
Publish the results/graphs please, like to see what your are doing. -Original Message- From: Matthew McCormack [mailto:mccorm...@molbio.mgh.harvard.edu] Sent: Monday, November 09, 2020 6:14 PM To: r-help@r-project.org Subject: Re: [R] analyzing results from Tuesday's US elections

Re: [R] Data Table not rendering properly using R shiny

2020-11-07 Thread Marc Schwartz via R-help
Hi, Please drop R-Devel as a cc: from this thread for further replies. This topic is definitely not relevant there and cross-posting is not needed, but does require manual moderation. Thanks, Marc Schwartz > On Nov 7, 2020, at 10:23 AM, Bert Gunter wrote: > > Better to post on

Re: [R] backslash in xtable (generate latex code from R)

2020-11-06 Thread Marc Schwartz via R-help
sanitize.colnames.function = identity, sanitize.text.function = identity) % latex table generated in R 4.0.3 by xtable 1.8-4 package % Fri Nov 6 07:54:51 2020 \begin{table}[ht] \centering \begin{tabular}{l} \hline $\beta_0$ \\ \hline aa \\ bb \\ cc$\alpha_1$ \\ \hline \end{tab

Re: [R] colMeans function

2020-11-04 Thread Marc Schwartz via R-help
[2]) str(flights$month) dim(flights$month) you would see the difference. Regards, Marc Schwartz > On Nov 4, 2020, at 8:26 AM, Engin Yılmaz wrote: > > Dear > I use *flights* database library(nycflights13) > > The following code is working as > > colMeans(flights[2])

Re: [R] FREDR and R 3.6

2020-10-29 Thread Marc Schwartz via R-help
> On Oct 29, 2020, at 6:35 PM, H wrote: > > On 10/29/2020 01:49 PM, Marc Schwartz wrote: >>> On Oct 29, 2020, at 1:29 PM, H wrote: >>> >>> I tried to install the fredr package yesterday to access the data series >>> hosted by the St. Louis Fed bu

Re: [R] FREDR and R 3.6

2020-10-29 Thread Marc Schwartz via R-help
il.com) to see what the current status of the package is, and if they plan to resolve the issues. If not, consider alternative approaches. You should also consider updating your R installation, as 3.6.0 is well over a year old at this point. 4.0.3 is the current stable release.

Re: [R] temporary clipping

2020-10-26 Thread Marc Schwartz via R-help
plot region where 'usr' is the value of: usr <- par("usr") called after the very first plot is generated. The indication is that by using the final line of code in the example, the clipping region is reset to the plot region, probably also based upon any change to par

[R] [R-pkgs] WriteXLS Version 6.0.0 Released

2020-10-23 Thread Marc Schwartz via R-packages
of erstwhile numeric values with leading and/or trailing zeros. This option enhances prior improvements to preserving leading and/or trailing zeros on a worksheet cell specific basis. 3. Updated Perl libraries are included as apropos. Regards, Marc Schwartz __

Re: [R] write.csv covert Åland to land

2020-10-20 Thread Marc Schwartz via R-help
etc. prior to output. Essentially, mimic the default formatting of write.csv(), on a line by line basis, and then output the resulting object to a text file, with a single call to writeLines(). Regards, Marc Schwartz > On Oct 20, 2020, at 10:28 AM, Duncan Murdoch wrote: > > You

Re: [R] How to use R for Speech to text conversion

2020-10-07 Thread Marc Roos
I am also interested in this. Maybe a start: https://voice.mozilla.org/ -Original Message- To: r-help@r-project.org Subject: *SPAM* [R] How to use R for Speech to text conversion Hi Iam a newbie to NLP and I would like to get some directions on how to convert speech fil

Re: [R] Installing Perl For Use in R

2020-10-06 Thread Marc Schwartz via R-help
though I have a Github account. If you are on Windows, an alternative Perl distribution is Strawberry Perl: http://strawberryperl.com Regards, Marc Schwartz > On Oct 6, 2020, at 11:21 AM, Philip wrote: > > I’m getting nowhere with this. From the website below I click

Re: [R] 2 KM curves on the same plot

2020-09-29 Thread Marc Schwartz via R-help
(1, at = seq(150, 300, 50), line = -1) axis(4, las = 1) ## Draw the vertical line at 150 weeks axis(2, at = seq(0, 1, 0.2), labels = FALSE, lty = "dashed") Regards, Marc Schwartz > On Sep 28, 2020, at 8:33 PM, array chip via R-help > wrote: > > Hello, > > Can anyo

[R] R Implementation of the James and/or Bang RCT Blinding Assessment Indices

2020-09-24 Thread Marc Schwartz via R-help
came up empty handed. Thanks in advance for any leads! Regards, Marc Schwartz __ 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

Re: [R] CRAN R For Windows 3.6.3

2020-09-19 Thread Marc Schwartz via R-help
time around April 2021. > > Duncan Murdoch Hi, Just to add on to Duncan's comments, you may want to read the Software Development Life Cycle (SDLC) document here: https://www.r-project.org/certification.html That will give you insights into R's development, release and maintenance

Re: [R] question including crossover trials in meta-analysis

2020-09-14 Thread Marc Schwartz via R-help
. Regards, Marc Schwartz > On Sep 14, 2020, at 3:14 PM, Bert Gunter wrote: > > Did you first try a web search? -- you should always do this before posting > here. > > "meta-analysis in R" brought up this: > > https://CRAN.R-project.org/view=MetaAnalysis > &g

Re: [R] Survival Object - is 12month survival = 365days

2020-09-04 Thread Marc Schwartz via R-help
y truncates the x axis to 36 months, since the intervals in the example colon dataset go to about 9 years or so, and does not label the x axis. Bearing in mind that the underlying x axis unit is in days, the axis() function then places labels at the irregular intervals. You could then an

Re: [R] R 4.0.2 not running on macOS 10.15.6

2020-09-04 Thread Marc Schwartz via R-help
each e-mail from my main inbox to the relevant online (IMAP) sub-folder for organization. Thus, it keeps my inbox clean and let's me review relevant posts in a more efficient and focused manner. Regards, Marc > On Sep 4, 2020, at 11:43 AM, Mike Feher wrote: > > Good morning Ma

Re: [R] R 4.0.2 not running on macOS 10.15.6

2020-09-04 Thread Marc Schwartz via R-help
ere: https://stat.ethz.ch/mailman/listinfo/r-sig-mac which is where macOS specific R issues should be posted. You will need to re-install XQuartz any time you upgrade/install a new version of R. Regards, Marc Schwartz __ R-help@r-project.org

Re: [R] Connection to Oracle DB failing from R

2020-08-31 Thread Marc Schwartz via R-help
n searching for related issues, I noted some other posts on multiple OSs, and some issues raised on Simon's Github repo for the package. Also, I am torn between suggesting that this be re-posted to r-sig-db, which is specific to R and database interfaces, and r-sig-mac, which is specific to R

Re: [R] Error in optim with method L-BFGS-B when hessian is TRUE

2020-08-23 Thread Marc Girondot via R-help
problem... Marc Le 23/08/2020 ?? 11:19, Marc Girondot via R-help a ??crit??: Dear members, I fought for several days against an error I was getting with optim in L-BFGS-B. The error was produced because some parameters were outside the limits defined by upper and lower. After investigation, the

[R] Error in optim with method L-BFGS-B when hessian is TRUE

2020-08-23 Thread Marc Girondot via R-help
calculation of the Hessian matrix which does not take into account the upper and lower bounds. It would be nice if this was stated in the optim help within the L-BFGS-B method section. Marc Girondot __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and

Re: [R] Reproducibility Between Local and Remote Computer with R

2020-08-08 Thread Marc Schwartz via R-help
ages), that can help to reduce the number of variables at play here. Regards, Marc Schwartz > On Aug 7, 2020, at 4:24 PM, Kevin Egan wrote: > > I posted this question: > > I am currently using R , RStudio , and a remote computer (using an R script) > to run the same c

Re: [R] levels

2020-07-15 Thread Marc Schwartz via R-help
data.frame() and read.table()." Using 4.0.2: data <- data.frame(name, values, stringsAsFactors = TRUE) > levels(data$name) [1] "a" "b" "c" If you see behavioral changes from one version of R to another, especially major version increments, check the

[R] output from R to simple html

2020-07-08 Thread Marc Roos
I would like to parse some input to an R script and use its result output (maybe in json) on a web page. I think this shiny framework is a bit over kill. What is the simplest to implement this? __ R-help@r-project.org mailing list -- To UNSUBSCRIBE

Re: [R] how to summarize results from studies?

2020-07-01 Thread Marc Schwartz via R-help
with a number of relevant hits, including various tutorials. Regards, Marc > On Jul 1, 2020, at 1:07 PM, Michael Dewey wrote: > > Dear Frederik > > There is also a mailing list dedicated to meta-analysis in R > > https://stat.ethz.ch/mailman/listinfo/r-sig-meta-analysis//

Re: [R] how to summarize results from studies?

2020-07-01 Thread Marc Schwartz via R-help
and conceptual assistance would be beyond the scope of this list. You should consider consulting a local statistician for assistance with that, if needed. Regards, Marc Schwartz > On Jul 1, 2020, at 11:27 AM, Frederik Feys wrote: > > Hello everyone > > I have some studies wi

Re: [R] chaining closure arguments on-the-fly

2020-06-20 Thread Marc Schwartz via R-help
Hi Ben, How about something like this: f <- function(x, y = NULL) { if (is.null(y)) y <- x x + y } > f(3, 4) [1] 7 > f(3) [1] 6 Regards, Marc Schwartz > On Jun 20, 2020, at 7:15 AM, Benjamin Tyner wrote: > > Greetings, > > Occasionally, I desire

Re: [R] R Software Risk Analysis

2020-06-19 Thread Marc Schwartz via R-help
justed to enable required functionality. Thus, in the absence of more detail from Kristin as to what is specifically required, it is hard to know how to respond, within the context here, of a community based support list, and within the R community at large, where we all volunteer our time.

Re: [R] How to install R 4.0 on chromebook?

2020-05-22 Thread Marc Schwartz via R-help
/listinfo/r-sig-debian You should subscribe to that list and post your queries there to avail yourself of a focused audience, which may include folks that have installed a Debian based Linux distribution on a Chromebook. Regards, Marc Schwartz > On May 22, 2020, at 9:49 AM, Luigi Marongiu wr

Re: [R] Date from text

2020-05-15 Thread Marc Schwartz via R-help
te(sub("-", "-15-", x), format = "%m-%d-%Y") [1] "1993-11-15" Regards, Marc Schwartz > On May 15, 2020, at 5:38 AM, Poizot Emmanuel > wrote: > > Dear all, > > I've a data frame with a column "Date": > > [1] 11-1

Re: [R] Function Hints in Mac Dark Mode

2020-05-08 Thread Marc Schwartz via R-help
hem almost impossible to see. For Andrew, if this is correct, and you are not referring to RStudio per Jeff, you should post this to r-sig-mac: https://stat.ethz.ch/mailman/listinfo/r-sig-mac Otherwise, if it is RStudio, they have their own support here: https://

Re: [R] A behaviour pattern that I find mysterious.

2020-02-26 Thread Marc Schwartz via R-help
being character, complex, numeric, integer, logical and raw." Thus: > c(0, x) [1] "0" "a" "b" "*" "d" "e" > sort(c(0, x)) [1] "*" "0" "a" "b" "d" "e" Thus, "

Re: [R] citing old(er) versions of packages

2020-01-16 Thread Marc Schwartz via R-help
the package is located, if not on CRAN. An alternative, if the package is stored in an online VC system (e.g. Github), is that you may be able to read the relevant file from that system for the version of the file that is tagged appropriately. Regards, Marc Schwartz __

Re: [R] Converting Decimal numbers into Binary

2019-12-27 Thread Marc Schwartz via R-help
; Paul You might look at the intToBin() function in Henrik's R.utils package on CRAN: https://cran.r-project.org/web/packages/R.utils/index.html Regards, Marc Schwartz __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://s

Re: [R] Having problems with the ifelse and negative numbers

2019-12-10 Thread Marc Girondot via R-help
enchmark({B2 <- ifelse( A < 0, suppressWarnings(sqrt(-A)), A )}) # mean = 76.53762 A <- Aini microbenchmark({B3 <- ifelse( A < 0, sqrt(abs(A)), A )}) # mean = 75.26712 A <- Aini microbenchmark({A[A < 0] <- sqrt(-A[A < 0]);B4 <- A}) # mean = 17.71883 Marc Le 09/12/2019 à

Re: [R] Where is the SD in output of glm with Gaussian distribution

2019-12-09 Thread Marc Girondot via R-help
gLik(gnul) 'log Lik.' -136.4343 (df=2) > AIC(gnul) [1] 276.8687 > -2*logLik(gnul)+2*2 'log Lik.' 276.8687 (df=2) This is not intuitive when to count SD as a parameter (in AIC) or not in df.resuidual ! > > Bert > > On Mon, Dec 9, 2019 at 7:17 AM Marc G

[R] Where is the SD in output of glm with Gaussian distribution

2019-12-09 Thread Marc Girondot via R-help
902 > o0$par mean    sd 0.1399966 0.9694405 But I would like have the value in the glm. (and in the meantime, I don't understand why gnul$df.residual returned 99... for me it should be 98=100 - number of observations) -1 (for mean) - 1 (for sd); but it is statistica

Re: [R] How prevent update of a package

2019-12-06 Thread Marc Girondot via R-help
27; is not writable Not sure were I do something wrong. Thanks if you have an idea. Marc Le 06/12/2019 � 08:42, Amit Mittal a �crit�: > Just install Older R from the project R archives in a separate directory > > Best Regard

[R] How prevent update of a package

2019-12-05 Thread Marc Girondot via R-help
X ? - How to prevent raster package to be updated ? Thanks a lot Marc __ 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/posti

Re: [R] Unable to load .rda file

2019-10-15 Thread Marc Schwartz via R-help
LT_SERIALIZE_VERSION to 2. For maximal back-compatibility, files ‘vignette.rds’ and ‘partial.rdb’ generated by R CMD build are in serialization format version 2, and resave by default produces files in serialization format version 2 (unless the original is already in format version 3). Rega

[R] Raster package crash with segmentation fault

2019-09-27 Thread Marc Girondot via R-help
Dear members, When I load raster 3.0-7 package installed or from source or from binary in r 3.6.1 (macosX 10.14.6), I get a segmentation fault crash: (see below) As someone the same problem and a solution ? Thanks (I have posted this question in R-Sig_GEO list without answer still) > librar

[R] Bug (?): file.copy() erases 'from' file if the "to" file already exists and is a symlinked file

2019-09-13 Thread Marc Girondot via R-help
If file.copy() is used to replace a symlinked file, it erases the original file and does not copy the file. The original file is lost. > version _ platform x86_64-apple-darwin15.6.0 arch x86_64 os darwin15.6.0 s

[R] Loading aliased file in MacOSX

2019-09-11 Thread Marc Girondot via R-help
If I try to load data from an alias file made using Cmd+Ctrl+A in finder for MacOSX, I get an error. Symbolic links are working well but sometimes, it is easier to use finder rather than terminal. Has someone a solution to help R to read the original aliased file ? Thanks Here is a reproducib

Re: [R] Code modification for post-hoc power

2019-08-26 Thread Marc Schwartz via R-help
re still compelled (voluntarily or involuntarily), you may want to review the vignette for the longpower package which may have some insights, and/or contact the package maintainer for additional guidance on how to structure the code. See the vignette here: https://cran.r-project.org/web/

[R] knitr error for small text in pdf (bug)

2019-08-09 Thread Marc Girondot via R-help
Let try this minimal Rmarkdown file --- title: "cex in Rmarkdown" output: word_document --- ```{r} knitr::opts_chunk$set(dev='pdf') ``` ```{r} plot((0:160)/4, 0:160, type="n") text(x=20, y=70, labels =expression(alpha), cex=1e-7) ``` When knitr-red from Rstudio (with r 3.6.1 on MacosX with kn

Re: [R] Connect to Oracle database via ODBC

2019-08-05 Thread Marc Schwartz via R-help
ran.r-project.org/web/packages/RODBC/vignettes/RODBC.pdf There is also the r-sig-db e-mail list, which is focused in this domain, and where follow up questions should be posted: https://stat.ethz.ch/mailman/listinfo/r-sig-db Regards, Marc Schwartz

Re: [R] Regarding R licensing usage guidance

2019-07-22 Thread Marc Schwartz via R-help
perty rights, to get appropriate legal opinions on what it is you plan to build, how it will interact with R and the packages you list below, and what all of that means for your product. Regards, Marc Schwartz > On Jul 22, 2019, at 1:28 PM, Patrick (Malone Quantitative) > wrote: > &

Re: [R] Conditional Logistic Regression with Multilevel Data [using clogistic() in Epi and lmer() in lme4???]

2019-07-03 Thread Marc Schwartz via R-help
Hi Heather, I would defer to the mixed models experts, but I think that the basic approach using nested random effects seems to make sense. I don’t know that there is a dependency of glmer()/lme4 on metafor for this specific use case, but would defer to Wolfgang on that point. Regards, Marc

Re: [R] Conditional Logistic Regression with Multilevel Data [using clogistic() in Epi and lmer() in lme4???]

2019-07-03 Thread Marc Schwartz via R-help
On the page that you link to below, I don't see an example of that type of nesting structure. The mixed effects models would generally support a nested random effects specification, if that makes sense here. Regards, Marc Schwartz > On Jul 3, 2019, at 4:41 AM, Viechtbauer, Wolf

Re: [R] Conditional Logistic Regression with Multilevel Data [using clogistic() in Epi and lmer() in lme4???]

2019-07-02 Thread Marc Schwartz via R-help
ight be worthwhile posting to r-sig-mixed-models: https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models where experts in the domain of multi-level models reside. There may be an approach using glmer() or an alternative package, where you can define the paired observations within sites in manne

[R] Using rms Package's Predict function with transformed variables

2019-07-01 Thread Marc Burgess
indicated, it's possible to do the fit by creating explicit transformed variables, but then I can't come up with a way to get them to vary together correctly when using the Predict function. Any help would be appreciated --- Marc Burgess Example code: # Generate test data: librar

  1   2   3   4   5   6   7   8   9   10   >