Re: [R] apply

2024-10-04 Thread Ivan Krylov via R-help
В Fri, 4 Oct 2024 19:14:30 +0800 Steven Yen пишет: > I have a vector: > set.seed(123) > n<-3 > x<-rnorm(n); x [1] -0.56047565 -0.23017749 > 1.55870831 > var(x[1]) cov(x[1],x[2]) Are you sure you don't have a matrix? If you type var(x[1]) or cov(x[1],x[2]) into R, you can see that all these are

Re: [R] Invalid term in model formula with gmm after formula.tools is loaded

2024-11-01 Thread Ivan Krylov via R-help
Hi Aristide and welcome to R-help! Your message was a bit mangled [*]. It's best to compose messages to this mailing list in plain text. Otherwise (when composed in HTML), the mailing list eats the HTML part and we're left with the plain text part automatically generated by your mailer, which isn'

Re: [R] Invalid term in model formula with gmm after formula.tools is loaded

2024-11-04 Thread Ivan Krylov via R-help
В Sun, 3 Nov 2024 12:53:52 +0100 Elysée Aristide пишет: > Does that mean that I should send a new message? Or is it okay for > this time? No need to post it again. Did it help to replace the as.character() method for formulas provided by 'formula.tools'? I see the problem is already reported to

Re: [R] store list objects in data.table

2024-09-22 Thread Ivan Krylov via R-help
В Sun, 22 Sep 2024 07:44:16 -0400 Naresh Gurbuxani пишет: > carsreg <- carsdt[, .(fit = lm(mpg ~ disp + hp + wt)), by = .(cyl)] > > #I would like a data.table with three rows, one each for "lm" object > corresponding to cyl value > > carsreg[, .N] > #[1] 36 Try wrapping the lm() expression in

Re: [R] when installing packages for R on Linux, is it better to use my distro's package manager, or install.packages()?

2024-09-29 Thread Ivan Krylov via R-help
В Sat, 28 Sep 2024 18:05:08 -0400 "Christopher W. Ryan" пишет: > To install a new R package, is it better to use Linux Mint's pacakge > manager (e.g. synaptic, apt-get, or similar), or to install it within > R with install.packages("some_new_package")? Since you've already installed R itself fro

Re: [R] Question about Date Object and time zones

2024-09-25 Thread Ivan Krylov via R-help
24 сентября 2024 г. 17:10:13 GMT+03:00, Luca Brinkmann via R-help пишет: > My current > understanding is, that a Date object does only save the days from the > origin and no more information about timezones or other information > (please correct me if I am wrong). You are correct. > the date o

Re: [R] How to install this package

2024-09-25 Thread Ivan Krylov via R-help
В Wed, 25 Sep 2024 18:53:02 +0530 Christofer Bogaso пишет: > Error in dyn.load(dynlib <- getDynlib(dir)) : > > unable to load shared object > '/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/rgl/libs/rgl.so': > > > dlopen(/Library/Frameworks/R.framework/Versions/4.4-ar

Re: [R] Issue with non-standard file 'vert.txt' in R CMD check

2024-11-20 Thread Ivan Krylov via R-help
Dear Zahra Heidari Ghahfarrokhi, Welcome to R-help! В Mon, 18 Nov 2024 19:48:39 +0330 zahra heidari gh пишет: > A non-standard file named `vert.txt` is being generated in the > check directory, causing a NOTE in the check results. Despite adding > `vert.txt` to `.Rbuildignore`, the file is sti

Re: [R] mclapply hanging occasionally on macos

2024-12-31 Thread Ivan Krylov via R-help
В Mon, 30 Dec 2024 19:16:11 -0800 Ivo Welch пишет: > useless.function <- function( ) { > y <- rnorm(3); x <- rnorm(3) > summary( lm( y ~ x )) ## useless > NULL > } > > run30 <- function(i) { > message("run30=", i) > useless.function() > } > > run30( 0 ) > message("many mc")

Re: [R] Unexpected result after auto-attaching of the Matrix package

2025-02-12 Thread Ivan Krylov via R-help
В Tue, 11 Feb 2025 13:51:48 +0100 H B via R-help пишет: > > class(d) > [1] "dgCMatrix" > attr(,"package") > [1] "Matrix" > > dim(d) > Loading required package: Matrix > NULL Here's what happens here: 1. .Primitive("dim") considers dispatching a dim() method: https://github.com/r-devel/r-s

Re: [R] Mutate issue help needed

2024-12-17 Thread Ivan Krylov via R-help
В Tue, 17 Dec 2024 06:44:50 -0700 Neotropical bat risk assessments пишет: > fname <- "Buzz.txt" > All<- fname I think the code needs a call to read.table() or another function to read your data here. 'All' is still a string containing the name of the file, not its contents. > All %>% > mutate

Re: [R] Confirmation of no Electronic Communication functionality

2024-12-13 Thread Ivan Krylov via R-help
Dear Edward Woo, Welcome to R-help! В Fri, 13 Dec 2024 14:24:18 + Edward Woo via R-help пишет: > need an email confirming that r does not include any electronic > communication functionality within the program Could you please provide a definition of electronic communication functionality?

Re: [R] Regarding Issue Running Parallel Computing on Linux RHEL version 8

2025-01-21 Thread Ivan Krylov via R-help
В Mon, 20 Jan 2025 13:45:25 + "Huseni, Sadamhusen" пишет: > Error in as.data.frame.default(x[[i]], optional = TRUE) : > cannot coerce class ‘"call"’ to a data.frame > Calls: write.table ... data.frame -> as.data.frame -> > as.data.frame.default The underlying issue is that somehow the code

Re: [R] Regarding Issue Running Parallel Computing on Linux RHEL version 8

2025-01-14 Thread Ivan Krylov via R-help
Dear Sadam, В Mon, 13 Jan 2025 14:34:20 + "Huseni, Sadamhusen" пишет: > Issue Observed: The script hangs and does not complete execution > post-update. Previously, it took around two hours; now it runs for > over 17 hours without finishing. Do you still have the RHEL 7 machine? Could you pl

Re: [R] Help Parsing String? From HTML

2025-01-05 Thread Ivan Krylov via R-help
В Sun, 5 Jan 2025 20:03:11 + "Sparks, John via R-help" пишет: > > mystring > {xml_nodeset (1)} > [1] {\n "symbol": "ABI",\n "open": 21.04,\n "high": 21.05,\n > "low": 20.06,\n "close": 20.2,\n "volume": 938700,\n "from": > "2005-01-04"\n} > > But I can't find a way to isolate the ind

Re: [R] Regarding Issue Running Parallel Computing on Linux RHEL version 8

2025-01-14 Thread Ivan Krylov via R-help
В Tue, 14 Jan 2025 14:23:54 + "Huseni, Sadamhusen" пишет: > ###***Session information from Linux version 8 > R version 4.4.1 (2024-06-14) > Platform: x86_64-redhat-linux-gnu > Running under: Red Hat Enterprise Linux 8.10 (Ootpa) > > Matrix products: default > BLAS/LAPACK: /usr/lib64/libopen

Re: [R] Code \255 no longer working to produce a short dash in base R PDF graphs

2025-02-20 Thread Ivan Krylov via R-help
В Wed, 19 Feb 2025 11:36:15 + Paul Sherliker via R-help пишет: > text(1, 11, "baseline\255defined") > text(1, 9, "done") > graphics.off() > > They like that dash - but I never knew what it was called. > > Recently work updated my PC to the latest version of Windows, and, > perforce, I updat

Re: [R] Problems with package nlme

2025-02-20 Thread Ivan Krylov via R-help
Dear Stephan Weinbruch, I'm afraid it's data(RatPupWeight, package = 'nlme'). -- Best regards, Ivan __ 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

Re: [R] Failed to convert data to numeric

2025-03-03 Thread Ivan Krylov via R-help
В Mon, 3 Mar 2025 12:08:43 +0530 Christofer Bogaso пишет: > dat2 = c("-24.43728533300", "4.8506950", > "-1.91849566670", > > "2.6418180", "6.77752766670", "3.2080840", > > "4.19328766670", "0.3782577", "4.6589550", > > "-9.881474

Re: [R] Failed to convert data to numeric

2025-03-03 Thread Ivan Krylov via R-help
В Mon, 3 Mar 2025 13:21:31 +0530 Christofer Bogaso пишет: > Is there any way to remove all possible "Unicode character" that may > be present in the array at once? Define a range of characters you consider acceptable, and you'll be able to use regular expressions to remove everything else. For e

Re: [R] R GUI randomly resizes. Is this a known bug?

2025-03-13 Thread Ivan Krylov via R-help
В Mon, 10 Mar 2025 17:04:52 +0700 ora...@quantbo.com пишет: > From time to time when I run a lengthy program the GUI will > spontaneously shrink to about 2/3 of its size, with the fonts also > shrunk, then jump back to full size. Back and forth, back and forth. It looks like the kind of resizing

Re: [R] Failure to install any packages: "malformed"

2025-03-20 Thread Ivan Krylov via R-help
Dear Leila, В Wed, 19 Mar 2025 12:49:47 +1100 Leila Davis пишет: > I cannot download any packages, as this same error is presented every > single time. Thank you for showing us what you're doing and the error you're getting in response! > What should I do? Could you please also show us the v

Re: [R] MacPorts install of data.table lacks openmp support

2025-03-17 Thread Ivan Krylov via R-help
Hello Naresh, If you don't get a good answer here, consider asking later at r-sig-...@r-project.org. В Sun, 16 Mar 2025 20:28:49 + Naresh Gurbuxani пишет: > I installed gfortran 14.2 using package available at > https://mac.r-project.org. Then I installed openmp support (17.0.6) > using pa

<    1   2   3   4   5   6