Re: [R] Spreadsheets data

2024-12-05 Thread avi.e.gross
What exactly is stopping you, Carlos? Do you know where the reagent dataset is? I don't. Is it being loaded from a known format like a .CSV file, or part of an EXCEL spreadsheet and so on? Does it come with a function in a package that you load and then invoke to load it or make it visible? Or, s

Re: [R] ggplot2: Plot multiple lines using stacked data.

2024-12-05 Thread avi.e.gross
John, I hate to break it to you that ggplot2 is not part of base R. "plot" and maybe lattice qualify. But I can work with you. Try this: ggplot(data=mydata, aes(x=AQIGroup, y=Freq, group=Day, color=Day)) + geom_point() + geom_line() The main change b

[R] ggplot2: Plot multiple lines using stacked data.

2024-12-05 Thread Sorkin, John
I am trying to use ggplot2 to create a figure with multiple lines, one line for each value of the variable Day. Each group of data for Day requires seven lines. The dataframe has data for 4 days and thus 4*7=28 lines. I can create a plot, but the plot only contains dots. The dots for each day s

Re: [R] Spreadsheets data

2024-12-05 Thread CALUM POLWART
And R Studio has an import data function that will provide a import command.. BUT Spreadsheet is a broad scope On Thu, 5 Dec 2024, 23:38 Martin Møller Skarbiniks Pedersen, < traxpla...@gmail.com> wrote: > On Thu, 5 Dec 2024 at 23:16, Figueiredo, Carlos via R-help > wrote: > > > > Hi there > >

Re: [R] Creating a script in Rstudio

2024-12-05 Thread CALUM POLWART
Carlos you are gonna have to provide at least a tiny smidge of information Reagent dataset? What is this? What is your problem with creating a script in R Studio. File New.. It kinda feels this is either "how do I use R studio" (in which case YouTube feels your friend) or "how do I use some very

Re: [R] Spreadsheets data

2024-12-05 Thread Bert Gunter
Please read **and follow** the posting guide linked below to learn how to ask for help on this list. Cheers, Bert On Thu, Dec 5, 2024 at 2:16 PM Figueiredo, Carlos via R-help wrote: > > Hi there > > > I want to create a script in Rstudio and load in the reagent dataset ensuring > that the diffe

Re: [R] Spreadsheets data

2024-12-05 Thread Martin Møller Skarbiniks Pedersen
On Thu, 5 Dec 2024 at 23:16, Figueiredo, Carlos via R-help wrote: > > Hi there > > > I want to create a script in Rstudio and load in the reagent dataset ensuring > that the different data types in there (dates, text, etc) come through > correctly. What have you tried? How good do you know R? R

[R] Spreadsheets data

2024-12-05 Thread Figueiredo, Carlos via R-help
Hi there I want to create a script in Rstudio and load in the reagent dataset ensuring that the different data types in there (dates, text, etc) come through correctly. Best wishes Carlos Notice of Confidentiality: The contents of this e-mail and any attachm

[R] Creating a script in Rstudio

2024-12-05 Thread Carlos Alberto Baptista de Figueiredo
Hi there I want to create a script in Rstudio and load in the reagent dataset ensuring that the different data types in there (dates, text, etc) come through correctly. Best wishes Carlos __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and

Re: [R] Undocumented behaviour of diag when replacing the diagonal of a matrix?

2024-12-05 Thread Bert Gunter
Gerrit: Oh, sorry. I was obviously unclear. What I meant by "equivalent" was "this is how the subset of indices in A whose corresponding values are changed is selected." So the example was meant to show this, not as a literal representation of the code. This might be a clearer explanation, but fe

Re: [R] Undocumented behaviour of diag when replacing the diagonal of a matrix?

2024-12-05 Thread Spencer Graves
Hi, Gerrit: On 12/5/24 05:04, Gerrit Eichner wrote: Hi, Bert, thx, but I don't think so, because your example fails, if you use different entries for matrix A than your vector 1:25. (Try A filled with only zeroes, e.g.) YOU'VE MISUNDERSTOOD Bert's reply: A matrix is a vector, and Bert ass

Re: [R] Save spatial data in a csv file

2024-12-05 Thread Roger Bivand via R-help
As Hasan suggested, much more information is needed. It would be very helpful to know the class of nyc_ct_geo, and how it was created. It is possibly an sf object from the print output. >From this, assuming that it is an sf object, the geometries are polygons, not >points, so need to be conver

Re: [R] Undocumented behaviour of diag when replacing the diagonal of a matrix?

2024-12-05 Thread Rui Barradas
Às 12:38 de 04/12/2024, Gerrit Eichner escreveu: Dear list, is anyone aware of the following behavious of diag when used to replace diagonals (plural!) of a matrix? Small example: The following is documented and clearly to be expected: A <- matrix(0, nrow = 5, ncol = 5) diag(A) <- 1; A BUT

Re: [R] Undocumented behaviour of diag when replacing the diagonal of a matrix?

2024-12-05 Thread Gerrit Eichner
Hi, Duncan, thx for your valuable hint re the two assigment functions! That might be the reason. Nevertheless, I couldn't figure out how they work together here. I simply executed the relevant lines of code which I found in `diag<-`body after assigning the matrix to x (which, of course, cannot

Re: [R] Undocumented behaviour of diag when replacing the diagonal of a matrix?

2024-12-05 Thread Gerrit Eichner
Hi, Bert, thx, but I don't think so, because your example fails, if you use different entries for matrix A than your vector 1:25. (Try A filled with only zeroes, e.g.) I guess, Duncan Murdochs hint is crucial. I'll comment on his asap. Best regards -- Gerrit --

Re: [R] Save spatial data in a csv file

2024-12-05 Thread D
Hi Hasan, Thank you for the advice. What does that mean by "respond with the output of `dput(nyc_ct_geo)`"? Please provide more details to address the problem. Thank you! On Sat, Nov 30, 2024 at 12:47 PM Hasan Diwan wrote: > Kindly respond with the output of `dput(nyc_ct_geo)` -- thank you!