Re: [R] Why I wrote my MWE the way I did. [WAS:] Re: What don't I understand about sample()?

2025-03-17 Thread Richard O'Keefe
?read.csv leads to the help page for read.table, of which read.csv is a special case. In the description, the first argument is called 'file', which suggests to the unwary reader that it can only name a file. But if you persist and read the description of the arguments, you learn that "file can be

[R] Why I wrote my MWE the way I did. [WAS:] Re: What don't I understand about sample()?

2025-03-17 Thread Kevin Zembower via R-help
Hello, all, thanks, again for the detailed comments and suggestions. This is one reason I really enjoy this group: the lively and knowledgeable discussions that questions generate. I'm a little hesitant that a future reader, just skimming the subject lines, will miss the true breath of this discuss

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

2025-03-17 Thread Naresh Gurbuxani
In the past I have been able to install data.table with openmp support. Recently I upgraded to Sequoia and needed to reinstall R and various packages. My new install of data.table lacks openmp support. Has anyone been able to use MacPorts to install data.table with openmp support? I have an In

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

Re: [R] What don't I understand about sample()?

2025-03-17 Thread Jeff Newmiller via R-help
The original question was about sample, a base R function. Dragging in tidyverse along the way could be regarded as complicating the question unnecessarily, but in some cases there can be undesirable or simply unexpected interactions between functions drawn from different packages. Such complic