Re: [R] Weird (wrong?) result for fft

2021-03-22 Thread Jiefei Wang
Hi Filippo, Why do you expect these two expressions to produce the same output? Especially the second expression contains the first expression. There is no way to have the same result unless the function "fft( * , inverse = TRUE)" does nothing but multiplies the input by the input's length. It

Re: [R] Can't save files from the Source pane of R Studio

2021-03-22 Thread Bert Gunter
... and moreover, the R Foundation that maintains and releases updates of R software(open source licensed, free) is a totally separate, non-profit entity from the RStudio organization, a for profit-company that has built a support/data science infrastructure based on R(some of which is free and

Re: [R] Can't save files from the Source pane of R Studio

2021-03-22 Thread John Kane
Rui is correct but you should also check that you have write--permission to the directory you are accessing On Mon, 22 Mar 2021 at 14:28, Parkhurst, David wrote: > I’m just starting to learn and use R Studio in my Mac. Now I find if I > type lines in what I think is called the source pane, and

Re: [R] Can't save files from the Source pane of R Studio

2021-03-22 Thread Rui Barradas
Hello, R-Help is for questions on R code. RStudio has its own help forum that you can access from the Help menu, Help > RStudio Community Forum Hope this helps, Rui Barradas Às 18:07 de 22/03/21, Parkhurst, David escreveu: I�m just starting to learn and use R Studio in my Mac. Now I find

[R] Can't save files from the Source pane of R Studio

2021-03-22 Thread Parkhurst, David
I�m just starting to learn and use R Studio in my Mac. Now I find if I type lines in what I think is called the source pane, and use Save as from the menu, nothing gets saved. That�s true if I add the extension .R or the extension .txt. If I try reopen the file in an empty source pane, it�s

Re: [R] Thank you 4 Davide

2021-03-22 Thread David Winsemius
On 3/22/21 8:24 AM, francesca brun via R-help wrote: Hello, The problem was that version 4.0.4 did not support the package so I tried with several old versions until 3.6.2 installs both climtrend and Rcmdr with its graphical interface !! solved and thanks again Davide !!Francesca I'm glad

[R] [Rd] R 4.0.5 scheduled for March 31

2021-03-22 Thread Peter Dalgaard via R-help
Full schedule is available on https://developer.r-project.org (or https://svn.r-project.org/R-dev-web/trunk/index.html for the impatient). (This is a fast-track release, to resolve an issue with Asian character sets and another issue with R CMD build, before R 4.1.0) -- Peter Dalgaard,

[R] Thank you 4 Davide

2021-03-22 Thread francesca brun via R-help
Hello, The problem was that version 4.0.4 did not support the package so I tried with several old versions until 3.6.2 installs both climtrend and Rcmdr with its graphical interface !! solved and thanks again Davide !!Francesca (from Italy) [[alternative HTML version deleted]]

Re: [R] Weird (wrong?) result for fft

2021-03-22 Thread Jeff Newmiller
Neither. The discrete Fourier transform is a complex number operation. R-help is per the Posting Guide not an appropriate place to discuss theory in depth, and there is plenty of theory in this question and practically no R, but you can examine your result more closely with the functions

[R] Weird (wrong?) result for fft

2021-03-22 Thread Filippo Monari
Hi all, I am plying around with fft function from the stats package. Running the example that is listed in the documentation: x <- 1:4 fft(x) #output 1 fft(fft(x), inverse = TRUE)/length(x) #output 2 I was expecting that output 1 and two were the same but I get: > fft(x) [1] 10+0i -2+2i -2+0i

[R] Ellipses in factor analysis

2021-03-22 Thread Mahmood Naderan-Tahan
Hi In the example shown in [1], there is command that adds ellipses in the individual map. fviz_mfa_ind(res.famd, habillage = "Label", # color by groups palette = c("#00AFBB", "#E7B800", "#FC4E07"), addEllipses = TRUE, ellipse.type = "confidence",

Re: [R] Help Package 'CLIMTRENDS' from Archive

2021-03-22 Thread David Winsemius
> On Mar 22, 2021, at 4:54 AM, francesca brun via R-help > wrote: > > Hello, > I need to run the 'climtrend' library It's a package, not a library. Libraries are directory locations and typically hold multiple packages. > which is no longer available, I downloaded and installed it from

Re: [R] Rstudio crashed when I try to train a nnet model.

2021-03-22 Thread Duncan Murdoch
On 22/03/2021 8:39 a.m., Jiefei Wang wrote: Hi Baki, The crash is very likely due to the bug in nnet. If this is the case, there is almost nothing you can do. I think you only need to wait for the response from the package maintainer. You can send your data to the maintainer and help them to

[R] Help Package 'CLIMTRENDS' from Archive

2021-03-22 Thread francesca brun via R-help
Hello, I need to run the 'climtrend' library which is no longer available, I downloaded and installed it from the archive on my pc but it doesn't work, it says "I can't find the function ..." what should I do? I absolutely need to use it, in addition to installing it, what should I do to use

Re: [R] Rstudio crashed when I try to train a nnet model.

2021-03-22 Thread Jiefei Wang
Hi Baki, The crash is very likely due to the bug in nnet. If this is the case, there is almost nothing you can do. I think you only need to wait for the response from the package maintainer. You can send your data to the maintainer and help them to debug the issue. Best, Jiefei On Mon, Mar 22,

Re: [R] Rstudio crashed when I try to train a nnet model.

2021-03-22 Thread Baki UNAL via R-help
Hi, I tried to run the code in another computer in RGui. This time program run until final iteration. But after the last iteration RGui quit without any error code. I mailed this issue to Brian Ripley who is the maintainer of R nnet package. What can I do to solve this problem? Best

Re: [R] forest plot -metafor package

2021-03-22 Thread Viechtbauer, Wolfgang (SP)
Dear Usmle Ck, This is what the 'slab' argument is for (for adding 'study labels'). For an example, see: https://www.metafor-project.org/doku.php/plots:forest_plot Best, Wolfgang >-Original Message- >From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Usmle Ck >Sent:

Re: [R-es] semana

2021-03-22 Thread Javier Marcuzzi
Estimado José Hay un problema de interpretación, y estas interpretaciones dan distintas soluciones. Lo más simple, los 365 días / 7, y los agrupé, pero también puede ser semana del calendario, ubicando todos los días y sus casos, o semana del mes, o primer, segunda, tercera semana anual. Todos

[R] [R-pkgs] CRAN new release: meedr package provides access to Central Bank of Brazil API

2021-03-22 Thread Fernando da Silva
Hello everyone, Very happy to announce my first release on CRAN: *meedr. *The goal is to provide quick and easy access to market expectations data to the main macroeconomic indicators in the Focus report, made available by the Central Bank of Brazil through the Expectations System data API. This

[R] forest plot -metafor package

2021-03-22 Thread Usmle Ck
*I am performing a meta-analysis using the metafor package. My data are **proportions and I used the Freeman Tukey double arcine (FT)** transformation to fit the random effects model. To create a **forest plot with my estimates backtransformed to the original scale of **proportions i found this

Re: [R-es] semana

2021-03-22 Thread Francisco Rodríguez
Como objeto xts se puede resolver, un saludo De: R-help-es en nombre de Jose Betancourt Bethencourt Enviado: lunes, 22 de marzo de 2021 11:51 Para: Emilio L. Cano Cc: r-help-es Asunto: Re: [R-es] semana EStimados Perdonen pero no logro resolver el problema

Re: [R-es] semana

2021-03-22 Thread Jose Betancourt Bethencourt
EStimados Perdonen pero no logro resolver el problema Se trata de una serie de tiempo de casos diarios que quiero llevar semanales 2021-01-5 2021-01-6 2021-01-0 2021-01-1 2021-01-2 111625 611 2021-01-3 2021-01-4 2021-01-5 2021-01-6 2021-01-0 25

Re: [R] for loop implementation in below problem

2021-03-22 Thread Jim Lemon
No, I am confounded, It does return the value of the expressions within the respective braces, just like ifelse. Learn something every day. Jim On Mon, Mar 22, 2021 at 9:35 PM Jim Lemon wrote: > > If he's setting PRE to the return value of "if", that is the logical > value of the expression in

Re: [R] for loop implementation in below problem

2021-03-22 Thread Jim Lemon
If he's setting PRE to the return value of "if", that is the logical value of the expression in the if statement as far as I know. I think that the expression within the else clause would be evaluated but not assigned to anything and since it is within the loop, would just be lost.

Re: [R] for loop implementation in below problem

2021-03-22 Thread Duncan Murdoch
On 22/03/2021 1:59 a.m., Jim Lemon wrote: Hi Goyani, You are setting "PRE" to the return value of "if" which is one of TRUE (1), FALSE(0) or NULL. That's not true at all. The statement was PRE<- if(missing(GAY)){ (GA/GA) * 100 } else { (GA/GAY) * 100 } so the result

Re: [R] How to average minutes per hour per month in the form of '# hours #minutes'

2021-03-22 Thread PIKAL Petr
Hallo Sorry I cannot help you in tidyverse. I would use aggregate together with format aggregate(whatever, list(format(datum, "%Y")), sum) aggregate(whatever, list(format(datum, "%m")), sum) Cheers Petr > -Original Message- > From: R-help On Behalf Of Dr Eberhard W > Lisse > Sent:

Re: [R] About fviz_famd_ind()

2021-03-22 Thread PIKAL Petr
Hallo However sometimes it could be easier to fine tune simple biplot function. fit <- prcomp(iris[,-5]) biplot(fit, col=c("white", "grey"), xlim=c(-.15,.15), ylim=c(-0.05, .05), expand=1) points(fit$x[,1:2]*3, pch=c(17, 19)[as.numeric(iris$Sepal.Length<6)+1],