Re: [R] aggregate produces results in unexpected format

2024-12-11 Thread Enrico Schumann
On Wed, 11 Dec 2024, Sorkin, John writes: > I am trying to use the aggregate function to run a function, catsbydat2, that > produces the mean, minimum, maximum, and number of observations of the values > in a dataframe, inJan2Test, by levels of the dataframe variable MyDay. The > output should

Re: [R] SQL and R

2024-12-11 Thread Eberhard W Lisse
Looks like an assignment question. If so, do your homework yourself. Google is your friend el On 2024-12-11 15:16, akshay kulkarni wrote: > dear Members, I have recently started studying SQL and MySQL. My > question is, what exactly is SQL used for? That is, whatever can be > done by SQL, like

Re: [R] SQL and R

2024-12-11 Thread Sorkin, John
Dear Askay, I believe my grey hair allows me to help answer your question. SQL, and its progenitor SEQUEL, were developed specifically to manipulate relational databases. It was developed in the early 1970s (equivalent to the historical bronze age) when the concept of a relational database (see

Re: [R] SQL and R - tangential

2024-12-11 Thread avi.e.gross
Actually, tangentially, JC, I have a deep suspicion that many computer languages are not written to solve problems. They are sometimes an effort by someone to implement a new paradigm different than what others have tried before or to protect the programmer from themselves or to demand extensive ri

[R] aggregate produces results in unexpected format

2024-12-11 Thread Sorkin, John
I am trying to use the aggregate function to run a function, catsbydat2, that produces the mean, minimum, maximum, and number of observations of the values in a dataframe, inJan2Test, by levels of the dataframe variable MyDay. The output should be in the form of a dataframe. #my code: # This fu

Re: [R] Cores hang when calling mcapply

2024-12-11 Thread Gregg Powell via R-help
How is the server configured to handle memory distribution for individual users. I see it has over 700GB of total system memory, but how much can be assigned it each individual user? AAgain - just curious, and wondering how much memory was assigned to your instance when you were running R. reg

[R] SQL and R

2024-12-11 Thread akshay kulkarni
dear Members, I have recently started studying SQL and MySQL. My question is, what exactly is SQL used for? That is, whatever can be done by SQL, like subsetting and filtering of data sets, can also be done by R. What's, then, the advantage of SQL? It is OK if you ta

Re: [R] Cores hang when calling mcapply

2024-12-11 Thread Deramus, Thomas Patrick
About to try this implementation. As a follow-up, this is the exact error: Lost warning messages Error: no more error handlers available (recursive errors?); invoking 'abort' restart Execution halted Error: cons memory exhausted (limit reached?) Error: cons memory exhausted (limit reached?) Erro

Re: [R] SQL and R

2024-12-11 Thread Ben Bolker
Others may know more than I do, but roughly: (1) SQL provides access to relational database management systems that are much more robust and handle large-scale data; (2) methods based on SQL will often handle data that are too large to fit in memory R complements SQL by providing a mu

Re: [R] SQL and R

2024-12-11 Thread Bert Gunter
Just a slight technical note -- Ben gave you a good answer already, imo. The note is: R is Turing complete, which mean that *anything* any language can do, R could be programmed to do also. The point is what can be done well in R and what can be done (often much) better with other tools, as Ben ex

Re: [R] SQL and R

2024-12-11 Thread avi.e.gross
Akshay, Your question has way too many answers. SQL has a long history and early versions came long before R arrived on the scene. There is a huge embedded base of hardware and software dedicated to managing databases. It has some features that most R programs do not even dream of doing. Besides

Re: [R] Cores hang when calling mcapply

2024-12-11 Thread Gregg Powell via R-help
Thomas, I'm curious - what OS are you running this on, and how much memory does the computer have?  Let me know if that code worked out as I hoped. regards, gregg On Wednesday, December 11th, 2024 at 6:51 AM, Deramus, Thomas Patrick wrote: > About to try this implementation. > > As a foll

Re: [R] Cores hang when calling mcapply

2024-12-11 Thread Deramus, Thomas Patrick
It's Redhat Enterprise Linux 9 Specifically: OS Information: NAME="Red Hat Enterprise Linux" VERSION="9.3 (Plow)" ID="rhel" ID_LIKE="fedora" VERSION_ID="9.3" PLATFORM_ID="platform:el9" PRETTY_NAME="Red Hat Enterprise Linux 9.3 (Plow)" ANSI_COLOR="0;31" LOGO="fedora-logo-icon" CPE_NAME="cpe:/o:redh

Re: [R] SQL and R - tangential

2024-12-11 Thread J C Nash
My late friend Morven Gentleman, not long after he stepped down from being chair of Computer Science at Waterloo, said that it seemed computer scientists had to create a new computer language for every new problem they encountered. If we could use least squares to measure this approximation, we'

Re: [R] aggregate produces results in unexpected format

2024-12-11 Thread Rui Barradas
Às 20:31 de 11/12/2024, Sorkin, John escreveu: I am trying to use the aggregate function to run a function, catsbydat2, that produces the mean, minimum, maximum, and number of observations of the values in a dataframe, inJan2Test, by levels of the dataframe variable MyDay. The output should be

Re: [R] SQL and R

2024-12-11 Thread CALUM POLWART
And to answer the dependency question. Neither is dependent on the other. But both can be complimentary. If you consider that SQL*may* be a route to accessing your data (if it's in a database). And R *may* be a route to analysis of the data. If the data is in a CSV file, Excel file, API etc. y

Re: [R] SQL and R

2024-12-11 Thread Jeff Newmiller via R-help
Some people prefer SQL syntax. Also, SQL implementations are generally intrinsically linked with persistent disk storage, so it works straightforwardly with data sets larger than RAM. Finally, most implementations support shared access to the data from multiple clients. A long time ago in a com