Displaying 20 results from an estimated 10000 matches similar to: "R in Windows 11"
2024 Mar 29
2
Output of tapply function as data frame: Problem Fixed
Dear Rui,
Thanks again for resolving this. I have already started using the version
that works for me.
But to clarify the second part, please let me paste the what I did and the
error message:
> set.seed(2024)
> data <- data.frame(
+ Date = sample(seq(Sys.Date() - 5, Sys.Date(), by = "1 days"), 100L,
+ TRUE),
+ count = sample(10L, 100L, TRUE)
+ )
>
> # coerce
2024 Mar 29
1
Output of tapply function as data frame: Problem Fixed
?s 01:43 de 29/03/2024, Ogbos Okike escreveu:
> Dear Rui,
> Thanks again for resolving this. I have already started using the version
> that works for me.
>
> But to clarify the second part, please let me paste the what I did and the
> error message:
>
>> set.seed(2024)
>> data <- data.frame(
> + Date = sample(seq(Sys.Date() - 5, Sys.Date(), by = "1
2024 Feb 23
2
help - Package: stats - function ar.ols
Hello,
Thanks for the reply Rui and for pointing out that I forgot to attach
my code. Please find attached in this email my code and data.
Thanks in advance.
Best regards, Pedro Gerhardt Gavronski.
On Fri, Feb 23, 2024 at 5:50?AM Rui Barradas <ruipbarradas at sapo.pt> wrote:
>
> ?s 16:34 de 22/02/2024, Pedro Gavronski. escreveu:
> > Hello,
> >
> > My name is Pedro
2023 Nov 30
1
back tick names with predict function
?s 17:38 de 30/11/2023, Robert Baer escreveu:
> I am having trouble using back ticks with the R extractor function
> 'predict' and an lm() model.? I'm trying too construct some nice vectors
> that can be used for plotting the two types of regression intervals.? I
> think it works with normal column heading names but it fails when I have
> "special"
2024 Jun 15
2
code for year month day hr format
Thank you Rui. I ran the following script
df1 <- read.table("solar_hour", header = TRUE)
df1$date <- as.Date(paste(df1$year, df1$hour),
format = "%Y %j",
origin = "2012-08-01-0")
df2 <- df1[c("date", "IMF", "SWS", "SSN", "Dst", "f10")]
head(df1)
#To display all the rows
print(df2).
It gave me this
2024 Feb 23
1
help - Package: stats - function ar.ols
?s 16:34 de 22/02/2024, Pedro Gavronski. escreveu:
> Hello,
>
> My name is Pedro and it is nice to meet you all. I am having trouble
> understanding a message that I receive when use function ar.ols from
> package stats, it says that "Warning message:
> In ar.ols(x = dtb[2:6966, ], demean = FALSE, intercept = TRUE,
> prewhite = TRUE) :
> model order: 2
2023 Dec 07
1
Convert character date time to R date-time variable.
?s 16:21 de 07/12/2023, Sorkin, John escreveu:
> Colleagues,
>
> I have a matrix of character data that represents date and time. The format of each element of the matrix is
> "2020-09-17_00:00:00"
> How can I convert the elements into a valid R date-time constant?
>
> Thank you,
> John
>
>
>
> John David Sorkin M.D., Ph.D.
> Professor of
2024 Feb 02
1
gathering denominator under frac
?s 10:01 de 02/02/2024, Troels Ring escreveu:
> Hi friends - I'm plotting a ratio of bicarbonates i ggplot2 and
>
> ylab(expression(paste(frac("additive BIC","true BIC")))) worked OK - but
> now I have been asked to put the chemistry instead - so I wrote
>
>
2023 Nov 30
1
back tick names with predict function
I am having trouble using back ticks with the R extractor function
'predict' and an lm() model.? I'm trying too construct some nice vectors
that can be used for plotting the two types of regression intervals.? I
think it works with normal column heading names but it fails when I have
"special" back-tick names.? Can anyone help with how I would reference
these?? Short of
2024 Jun 02
1
R code for overlapping variables -- count
?s 18:34 de 02/06/2024, Leo Mada via R-help escreveu:
> Dear Shadee,
>
> If you have a data.frame with the following columns:
>
> n = 100; # population size
> x = data.frame(
> ??????Sex = sample(c("M","F"), n, T),
> ??????Country = sample(c("AA", "BB", "US"), n, T),
> ??????Income = as.factor(sample(1:3, n, T))
> )
2024 Jul 13
1
Obtaining predicted probabilities for Logistic regression
?s 12:13 de 13/07/2024, Christofer Bogaso escreveu:
> Hi,
>
> I ran below code
>
> Dat = read.csv('https://raw.githubusercontent.com/sam16tyagi/Machine-Learning-techniques-in-python/master/logistic%20regression%20dataset-Social_Network_Ads.csv')
> head(Dat)
> Model = glm(Purchased ~ Gender, data = Dat, family = binomial())
> head(predict(Model,
2024 Apr 21
1
x[0]: Can '0' be made an allowed index in R?
?s 08:55 de 21/04/2024, Hans W escreveu:
> As we all know, in R indices for vectors start with 1, i.e, x[0] is not a
> correct expression. Some algorithms, e.g. in graph theory or combinatorics,
> are much easier to formulate and code if 0 is an allowed index pointing to
> the first element of the vector.
>
> Some programming languages, for instance Julia (where the index for
2024 Sep 19
1
Inquiry About R Packages for Specific Research Areas
Hello,
There is a CRAN Task View: Epidemiology that should be or have what you
are looking for.
[1] https://CRAN.R-project.org/view=Epidemiology
Hope this helps,
Rui Barradas
?s 06:29 de 19/09/2024, Aleena Shaji escreveu:
> Dear R Support Team,
>
> I hope this email finds you well.
>
> I am writing to inquire about the specific R packages that would best suit
> our
2024 Feb 02
1
gathering denominator under frac
... or if I understand correctly, simply
expression(frac(additive ~ HCO[3]^"-",
true ~ HCO[3]^"-" )))
Cheers,
Bert
On Fri, Feb 2, 2024 at 3:06?AM Rui Barradas <ruipbarradas at sapo.pt> wrote:
> ?s 10:01 de 02/02/2024, Troels Ring escreveu:
> > Hi friends - I'm plotting a ratio of bicarbonates i ggplot2 and
> >
> >
2024 Sep 17
1
(no subject)
Hmmm... typos and thinkos ?
Maybe:
mean_narm<- function(x) {
m <- mean(x, na.rm = T)
if (is.nan (m)) NA else m
}
-- Bert
On Mon, Sep 16, 2024 at 4:40?PM CALUM POLWART <polc1410 at gmail.com> wrote:
>
> Rui's solution is good.
>
> Bert's suggestion is also good!
>
> For Berts suggestion you'd make the list bit
>
> list(mean = mean_narm)
>
2024 Apr 07
1
Question regarding reservoir volume and water level
?s 13:27 de 07/04/2024, javad bayat escreveu:
> Dear all;
> I have a question about the water level of a reservoir, when the volume
> changed or doubled.
> There is a DEM file with the highest elevation 1267 m. The lowest elevation
> is 1230 m. The current volume of the reservoir is 7,000,000 m3 at 1240 m.
> Now I want to know what would be the water level if the volume rises to
2024 Jul 18
1
ggplot two-factor legend
?s 16:27 de 18/07/2024, SIBYLLE ST?CKLI via R-help escreveu:
> Hi
>
> I am using ggplot to visualise y for a two-factorial group (Bio: 0 and 1) x
> = 6 years. I was able to adapt the colour of the lines (green and red) and
> the linetype (solid and dashed).
> Challenge: my code produces now two legends. One with the colors for the
> group and one with the linetype for the
2023 Nov 27
2
Rtools error
Hello, I want to download a package and it gives me the error:
WARNING: Rtools is required to build R packages, but no version of
Rtools compatible with R 4.2.0 was found. (Only the following
incompatible version(s) of Rtools were found: 4.3.5550)
Please download and install Rtools 4.2 from
https://cran.r-project.org/bin/windows/Rtools/.
I have downloaded it but dont know what to do further.
2024 Feb 02
1
gathering denominator under frac
Hi friends - I'm plotting a ratio of bicarbonates i ggplot2 and
ylab(expression(paste(frac("additive BIC","true BIC")))) worked OK - but
now I have been asked to put the chemistry instead - so I wrote
?ylab(expression(paste(frac("additive",HCO[3]^"-","true",HCO[3]^"-"))))
- and frac saw that as additive = numerator and HCO3- =
2024 Feb 22
1
help - Package: stats - function ar.ols
Hello,
My name is Pedro and it is nice to meet you all. I am having trouble
understanding a message that I receive when use function ar.ols from
package stats, it says that "Warning message:
In ar.ols(x = dtb[2:6966, ], demean = FALSE, intercept = TRUE,
prewhite = TRUE) :
model order: 2 singularities in the computation of the projection
matrix results are only valid up to model order 1,