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
ot;") [,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 there a way to get a copy of a matrix on

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 r

[R] Try reproduce glmm by hand

2023-12-02 Thread Marc Girondot via R-help
to 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,

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

2023-09-14 Thread Marc Girondot via R-help
E (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 __ R-help@r-project.org mailing list -- T

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 (mailto:alfredo.rocc

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

2023-04-12 Thread Marc Schwartz via R-help
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, Marc Schw

Re: [R] Simple Stacking of Two Columns

2023-04-03 Thread Marc Schwartz via R-help
op = 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, > > Sorry to bother you, but

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

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: [ESS] Can't find documentation for function

2022-09-18 Thread Marc Schwartz via ESS-help
for the file there. Without the package prefix, it only looks in the current search path, and thus does not find the package there. Regards, Marc Schwartz On September 18, 2022 at 4:54:05 AM, Haris Fawad via ESS-help (ess-help@r-project.org (mailto:ess-help@r-project.org)) wrote: > Hi, &g

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

Re: [ESS] [External] Emacs 28.1 Released

2022-04-08 Thread Marc Schwartz via ESS-help
with Emacs 27.x. ESS 18.10.2 is now over 3 years old, which is circa Emacs 26.1. Regards, Marc On April 8, 2022 at 11:44:50 AM, Richard M. Heiberger via ESS-help (ess-help@r-project.org (mailto:ess-help@r-project.org)) wrote: > Thank you Vincent for your distribution. Please keep it up. > &g

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

2022-01-13 Thread Marc Schwartz via R-help
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 people: Sugges

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
ple is.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
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 for more help. Regards, Marc Schwa

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
nt 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" RNG for more ri

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

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 écrit : On

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

2021-10-20 Thread Marc Girondot via R-help
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 suppressMessages(q &l

[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 submitted pac

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

2021-08-10 Thread Marc Schwartz via R-help
y 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, Marc AbouEl-Makarim Aboueissa wrote on 8/10/21 6:34

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

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

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

[ESS] New Emacs 27.2 Released for macOS. Now Includes Apple Silicon support.

2021-03-30 Thread Marc Schwartz via ESS-help
nsupported" bar forward much quickly than I wanted to. Now I have tighter control over the dependency build process at the expense of having to maintain a bunch of custom code to download, configure and make them." Regards, Marc Schwartz _

Re: [ESS] ESS M-x R failing in a Windows installation

2021-03-10 Thread Marc Schwartz via ESS-help
is not guaranteed. There may be other relevant FAQ entries as well. Regards, Marc Schwartz Sparapani, Rodney via ESS-help wrote on 3/10/21 1:28 PM: Hi Gang: Just to follow-up on my own post. I see that the Windows Registry was discussed here in June of 2012 and March of 2013 (not 2004 which was my

Re: [ESS] ESS M-x R failing in a Windows installation

2021-03-10 Thread Marc Schwartz via ESS-help
__ ESS-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/ess-help

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

Re: [R] Readxl on Mac

2020-12-01 Thread Marc Schwartz via R-help
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 Schw

[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

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

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

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"

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

2020-11-17 Thread Marc Schwartz via R-help
is 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 > On Nov 17, 2020,

Re: [R] Language environment

2020-11-17 Thread Marc Schwartz via R-help
m/ 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 list -- T

Re: [ESS] how to change default emacs behavior, upon running R code, from 2 side-by-by side frames to top-and-bottom frames?

2020-11-10 Thread Marc Schwartz via ESS-help
vided here on the list some time ago, and perhaps there is a more recent incantation, if things have changed since then. Regards, Marc Schwartz > On Nov 10, 2020, at 8:37 AM, Tyler Smith via ESS-help > wrote: > > Christopher W. Ryan via ESS-help writes: > >> When I execute

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
on = 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{tabular} \end{table} Regards,

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

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
.@gmail.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
on 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("xpd") th

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

2020-10-23 Thread Marc Schwartz via R-packages
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 ___ R-packages mailing list r-packa

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

2020-10-20 Thread Marc Schwartz via R-help
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 don't say

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

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

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
and 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
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 timelines. Re

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
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 annotate the plot fu

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 Marc, &

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
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 on macOS. However,

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

2020-08-23 Thread Marc Girondot via R-help
no 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

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

2020-08-23 Thread Marc Girondot via R-help
the 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

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
() 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 news() fi

[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

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

2020-07-01 Thread Marc Schwartz via R-help
p 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
e 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. Regards, Mar

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: [ESS] ess-eval-region Does Not Echo Highlighted Code Into the R Buffer?

2020-05-21 Thread Marc Schwartz via ESS-help
to modify it. That being said, I fully understand the differing views that have led to the recent change in the default. Regards, Marc > On May 21, 2020, at 9:41 AM, Martin Maechler > wrote: > > I've also had 'nowait as my personal default for many years.I > find it also m

Re: [ESS] ess-eval-region Does Not Echo Highlighted Code Into the R Buffer?

2020-05-20 Thread Marc Schwartz via ESS-help
to be a compromise of sorts, given the issues raised. Thanks, Marc > On May 19, 2020, at 6:05 PM, Alex Branham wrote: > > The default value of ess-eval-visibly recently changed. You probably want to > customize it to t or nowait. > > Alex > > On Tue, May 19, 2020, 5:08 PM Ma

Re: [ESS] ess-eval-region Does Not Echo Highlighted Code Into the R Buffer?

2020-05-19 Thread Marc Schwartz via ESS-help
put in the R buffer, as examples: >>>> or >>>>+>> after the command is run on a region of R code. Regards, Marc > On May 19, 2020, at 4:51 PM, Marc Schwartz wrote: > > Hi All, > > I just updated my ESS/Polymode installation today via melpa,

[ESS] ess-eval-region Does Not Echo Highlighted Code Into the R Buffer?

2020-05-19 Thread Marc Schwartz via ESS-help
es execute, confirmed when I check for the resultant object. Am I missing new behavior, or perhaps a setting that changed someplace, or that I introduced a conflict with the updates today? Thanks, Marc Schwartz __ ESS-help@r-project.org mailing

Re: [R] Date from text

2020-05-15 Thread Marc Schwartz via R-help
b("-", "-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-1993 11-199

Re: [R] Function Hints in Mac Dark Mode

2020-05-08 Thread Marc Schwartz via R-help
aking them 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://suppo

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
ver 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://stat.e

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/

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

2019-12-09 Thread Marc Girondot via R-help
'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 Girondot via R-help > mai

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

2019-12-09 Thread Marc Girondot via R-help
0$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 statistical question... I

Re: [R] How prevent update of a package

2019-12-06 Thread Marc Girondot via R-help
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 Regards > > Please excuse the

[R] How prevent update of a package

2019-12-05 Thread Marc Girondot via R-help
revent 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/posting-guide.html a

Re: [R] Unable to load .rda file

2019-10-15 Thread Marc Schwartz via R-help
IALIZE_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). Regards, Marc

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

[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

[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

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

2019-08-26 Thread Marc Schwartz via R-help
led (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/packages/longpo

[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

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

  1   2   3   4   5   6   7   8   9   10   >