Re: [R] fixed set.seed + kmeans output disagree on distinct platforms

2024-09-04 Thread Iago Giné Vázquez
Iago De: Martin Maechler Enviat el: dimecres, 4 de setembre de 2024 10:41 Per a: Bert Gunter A/c: Iago Giné Vázquez ; r-help@r-project.org Tema: Re: [R] fixed set.seed + kmeans output disagree on distinct platforms >>>>> Bert Gunter >>>>>

[R] fixed set.seed + kmeans output disagree on distinct platforms

2024-09-03 Thread Iago Giné Vázquez
Hi all, I build a dataset processing in the same way the same data in Windows than in Linux. The output of Windows processing is: https://gitlab.com/iagogv/repdata/-/raw/main/exdata.csv?ref_type=heads The output of Linux processing is: https://gitlab.com/iagogv/repdata/-/raw/main/exdata2.csv?r

Re: [R] Force conversion of (POSIXct) time zone with base R

2024-08-22 Thread Iago Giné Vázquez
Thanks all for your comments and solutions! Best regards, Iago De: Ivan Krylov Enviat el: dijous, 22 d��agost de 2024 11:27 Per a: Iago Gin�� V��zquez A/c: r-help@r-project.org Tema: Re: [R] Force conversion of (POSIXct) time zone with base R �� Thu, 22 Aug 20

[R] Force conversion of (POSIXct) time zone with base R

2024-08-22 Thread Iago Giné Vázquez
Hi, How should POSIXct time zone be changed without modifying the specified time (so fix the time zone). I tried > now <- Sys.time() > now [1] "2024-08-22 10:56:24 CEST" > as.POSIXct(now, tz = "UTC") [1] "2024-08-22 08:56:24 UTC" > as.POSIXct(now, origin = as.POSIXct("1970-01-01", tz = "UTC"), t

[R] Is there some place where I can check a changelog / NEWS for the grid package?

2024-08-16 Thread Iago Giné Vázquez
Hi all, On one hand, I wanted to ask if there is some place where I can check a changelog / NEWS for the grid package, as it is not on CRAN. And in that case, where can I find it? On the other hand, I wanted to ask you for tutorials to start understanding the grid package or what other recomme

Re: [R] Help trying to understand R documentation on libraries paths

2024-06-17 Thread Iago Giné Vázquez
Thanks, Regarding .libPaths, I am asking for the call to `.libPaths()`, so I understand there is no `new` in the call, as in the documentation I cited. Iago De: peter dalgaard Enviat el: dilluns, 17 de juny de 2024 13:26 Per a: Iago Gin� V�zquez A/c: r-help@r-

[R] Help trying to understand R documentation on libraries paths

2024-06-17 Thread Iago Giné Vázquez
Hi, 1 - On help(".libPaths", help_type = "text") one can read: First, '.Library.site' is initialized from 'R_LIBS_SITE'. However, I have > Sys.getenv("R_LIBS_SITE") [1] "c:/Users/i.gine/AppData/Local/Programs/R/R-4.4.1/site-library" > .Library.site character(0) Is this consistent? 2 - Next,

Re: [R] Is there some way to customize colours for the View output?

2024-05-13 Thread Iago Giné Vázquez
Hi all, I've just could test your suggestions on using dataedit... entries now, and indeed they work... partially. See, please, the next screenshot: https://ibb.co/Dkn2pVs dataedituser modifies the red borders dataedittext the yellow text dataeditfg... I do not know, specified to green the outp

Re: [R] Is there some way to customize colours for the View output?

2024-05-07 Thread Iago Giné Vázquez
Thanks Duncan. I am currently on Windows. Is there any solution for it? Best regards, Iago De: Duncan Murdoch Enviat el: dimarts, 7 de maig de 2024 12:24 Per a: Iago Gin� V�zquez ; r-help@r-project.org Tema: Re: [R] Is there some way to customize colours for

[R] Is there some way to customize colours for the View output?

2024-05-07 Thread Iago Giné Vázquez
Hi all, As the email subject tells, I write to ask if there is the chance to customize the colours (and in particular the background) of the `View` output window. In the View help, it is told that: On Windows, the initial size of the data viewer window is taken from the default dimensions

Re: [R] Debugging functions defined (locally) inside another functions

2024-04-12 Thread Iago Giné Vázquez
Thanks a lot both Duncan and Ivan, I will keep that example in mind, Duncan, great! Best regards, Iago De: Duncan Murdoch Enviat el: divendres, 12 d�abril de 2024 15:36 Per a: Iago Gin� V�zquez ; r-help@r-project.org Tema: Re: [R] Debugging functions defined

Re: [R] Debugging functions defined (locally) inside another functions

2024-04-12 Thread Iago Giné Vázquez
Thank you Ivan, your example solves my issue this time through debug(environment(Adder$add)$add) Just for the future, you say Moreover, `g` doesn't exist at all until f() is evaluated and reaches this point. If `f` was a function, it would be possible to trace() it, inserting a call

Re: [R] Debugging functions defined (locally) inside another functions

2024-04-12 Thread Iago Giné Vázquez
To be precise, in the case I am looking this time f is not a function, but f <- ggplot2::ggproto(...) So debug(f) produces Error in debug(f) : argument must be a function Iago De: R-help de part de Iago Gin� V�zquez Enviat el: divendres, 12 d�abril de 2024 14:

[R] Debugging functions defined (locally) inside another functions

2024-04-12 Thread Iago Giné Vázquez
Hi all, I am trying to debug an error of a function g defined and used inside another function f of a package. So I have f <- function(whatever){ ... g <- function(whatever2){ ... } ... } If I wanted to debug some thing directly inside f I would do debug(f). But this does not g

Re: [R] gsub issue with consecutive pattern finds

2024-03-01 Thread Iago Giné Vázquez
oue", perl = TRUE, ignore.case = > TRUE) > > ## or > > gsub("(?i)([aeiou])(?=[aeiou])", "\\1_", "aerioue", perl = TRUE) > ``` > > I hope this helps! > > > On Fri, Mar 1, 2024, 06:37 Iago Giné Vázquez wrote: > >> H

[R] gsub issue with consecutive pattern finds

2024-03-01 Thread Iago Giné Vázquez
Hi all, I tested next command: gsub("([aeiouAEIOU])([aeiouAEIOU])", "\\1_\\2", "aerioue") with the following output: [1] "a_eri_ou_e" So, there are two consecutive vowels where an underscore is not added. May it be a bug? Is it expected (bug or not)? Is there any chance to get what I want (a

Re: [R] Avoiding Delete key function as 'Quit R' in Rterm when there are no characters in cursor line

2024-02-12 Thread Iago Giné Vázquez
Thanks to both, Duncan and Thomas. Best, Iago De: Tomas Kalibera Enviat el: dilluns, 12 de febrer de 2024 11:18 Per a: Iago Giné Vázquez ; CALUM POLWART ; Duncan Murdoch A/c: r-help@r-project.org Tema: Re: [R] Avoiding Delete key function as 'Quit R'

Re: [R] Avoiding Delete key function as 'Quit R' in Rterm when there are no characters in cursor line

2024-02-09 Thread Iago Giné Vázquez
Duncan, do you think it's worth to comment this in R-devel list? Iago De: CALUM POLWART Enviat el: divendres, 9 de febrer de 2024 18:28 Per a: Duncan Murdoch A/c: Iago Giné Vázquez ; r-help@r-project.org Tema: Re: [R] Avoiding Delete key function as &#

Re: [R] Avoiding Delete key function as 'Quit R' in Rterm when there are no characters in cursor line

2024-02-09 Thread Iago Giné Vázquez
Yes, indeed, I am talking about Rterm in Windows. Iago De: Duncan Murdoch Enviat el: divendres, 9 de febrer de 2024 13:50 Per a: Iago Giné Vázquez Tema: Re: [R] Avoiding Delete key function as 'Quit R' in Rterm when there are no characters in cursor l

[R] Avoiding Delete key function as 'Quit R' in Rterm when there are no characters in cursor line

2024-02-09 Thread Iago Giné Vázquez
Hi all, I cite from README.Rterm ^D, DEL : Delete the character under the cursor. That is the general behaviour, but when there is no character (neither under the cursor nor at its left), pressing the Delete key suggests closing the R terminal. Is there any (configurable) way to avoid this

[R] Why Rprofile.site is not built with manual installation of R devel in linux?

2023-11-09 Thread Iago Giné Vázquez
Hi all, I downloaded R-devel as explicited in https://developer.r-project.org/SVNtips.html Then, I tried to install it through instructions in https://cran.r-project.org/doc/manuals/r-devel/R-admin.html#Installation (taking into account also https://stat.ethz.ch/pipermail/r-devel/2016-May/07277

Re: [R] aggregate formula - differing results

2023-09-04 Thread Iago Giné Vázquez
It seems that the issue are the missings. If in #1 you use the dataset na.omit(my_data) instead of my_data, you get the same output that in #2 and in #4, where all observations with missing data are removed since you are including all the variables. The second dataset has no issue since it ha

Re: [R] Help/documentation on Rgui

2023-07-03 Thread Iago Giné Vázquez
Thank you Petr, great! Best, Iago De: PIKAL Petr Enviat: Dilluns, 3-juliol 3e000 2023 9:42 Per a: Iago Gin� V�zquez; r-help@r-project.org Assumpte: RE: Help/documentation on Rgui Hi I am not sure about opening Rgui in terminal but for customising Rgui appearance

[R] Help/documentation on Rgui

2023-07-02 Thread Iago Giné Vázquez
Hi all, Where can I find a detailed document(ation) on the use of Rgui.exe. The most detailed I found is https://cran.r-project.org/doc/manuals/r-release/R-ints.html#GUI-consoles, where there is almost nothing. Actually I want to know how to open Rgui.exe (let's say, from a terminal [mainly i

Re: [R] Matrix scalar operation that saves memory?

2023-04-11 Thread Iago Giné Vázquez
You may take a look at the bigmemory package or other which deal with large memory data in https://cran.r-project.org/web/views/HighPerformanceComputing.html#large-memory-and-out-of-memory-data Some extra explanation is in https://stackoverflow.com/a/11127229/997979 Iago ___

Re: [R] Importing data with value labels into R

2022-11-14 Thread IAGO GINÉ VÁZQUEZ
Hello Maryam, The haven function for reading Stata files is read_dta (not read.dta!!!). May this be your issue? Iago De: R-help de part de Maryam Iraniparast Enviat el: dilluns, 14 de novembre de 2022 19:07 Per a: r-help@r-project.org Tema: [R] Importing dat

[R] Rare behaviour for nlme::reStruct example and question about ?lmeObject

2022-11-14 Thread IAGO GINÉ VÁZQUEZ
Dear developers, When I run the example code in the help of reStruct, I get > library(nlme) > rs1 <- reStruct(list(Dog = ~day, Side = ~1), data = Pixel) > rs1 Uninitialized random effects structure > str(rs1) List of 2 $ Side:Error in pdMatrix.pdSymm(x) : cannot extract matrix from an uniniti

[R] Is it possible to set a default working directory for all R consoles?

2022-06-17 Thread IAGO GINÉ VÁZQUEZ
Hi all, Is there some way to set a default working directory each time R.exe is opened? I ask this because Always that I open R 4.2.o in Windows 10 I get the next warning messages Warning message: In normalizePath(path.expand(path), winslash, mustWork) : path[1]="\\172.19.2.44\profiles\profil