Re: [R] Help with read.csv.sql()

2020-07-19 Thread H
On 07/18/2020 01:38 PM, William Michels wrote: > Do either of the postings/threads below help? > > https://r.789695.n4.nabble.com/read-csv-sql-to-select-from-a-large-csv-file-td4650565.html#a4651534 >

Re: [R] Plot base 100

2020-07-19 Thread Jim Lemon
Hi Pedro, Assuming that you get a vector of daily percentage changes: dpc<-c(+3.1, -2.8, +1.7, +2.1) get the cumulative change and add 100: cumsum(dpc)+100 [1] 103.1 100.3 102.0 104.1 You can then plot that. As Rui noted, your mail client is inserting invisible characters that prevent cutting

Re: [R] Editing of .Rd files generated by roxygen2

2020-07-19 Thread Duncan Murdoch
On 17/07/2020 11:17 p.m., Shaami wrote: Hi All Could you please guide how we can edit the .Rd files generated by roxygen2 for better formatting? Edit the Roxygen2 comments in your R source code, or just don't use Roxygen2. I get the function and its input arguments into multiple lines

Re: [R] Integrating a function that contains for loop or vectorization for for loop

2020-07-19 Thread Rui Barradas
Hello, The functions are not equivalent. integrate subdivides the interval lower = 0, upper = 10 in into a maximum subdivisions = 100L. If you print length(X) you will see that it's 21. X is a vector of 21 values and to compute X^(1:10) this expands to X[1]^1, X[2]^2, ..., X[10]^10, X[11]^1,

Re: [R] Editing of .Rd files generated by roxygen2

2020-07-19 Thread Bert Gunter
No. Post to r-package-devel for help with R packages. However, roxygen2 is an Rstudio supported package, and you may need to post on Rstudio's site for help on it. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka

Re: [R] Plot base 100

2020-07-19 Thread David Winsemius
On 7/19/20 11:18 AM, Pedro páramo wrote: Hi all, I am trying to make a plot based on stock market prices and the library quantmod, imagine BatchGetSymbols(‘^IBEX’, first.date = ‘1999-12-31’, last.date = ‘2020-12-07’) The thing is I want to plot a plot that for each year on 31/12/year tthe

[R] Integrating a function that contains for loop or vectorization for for loop

2020-07-19 Thread Shaami
Hi Everyone It has been a long time I am facing a problem with integrating a function that contains for-loop or even vectorization of for loop. Could you please guide for the following MWE that how I could get rid of the error or warning messages? My MWE code is here: myfun <- function(X, a,

[R] Editing of .Rd files generated by roxygen2

2020-07-19 Thread Shaami
Hi All Could you please guide how we can edit the .Rd files generated by roxygen2 for better formatting? I get the function and its input arguments into multiple lines in the PDF file. Also, I do not get \usage{} line in .Rd file for an Rcpp functions. An example of an .Rd file and its

[R] Plot base 100

2020-07-19 Thread Pedro páramo
Hi all, I am trying to make a plot based on stock market prices and the library quantmod, imagine BatchGetSymbols(‘^IBEX’, first.date = ‘1999-12-31’, last.date = ‘2020-12-07’) The thing is I want to plot a plot that for each year on 31/12/year tthe base is 100 and each day calvulate the

Re: [R] levels

2020-07-19 Thread Chris Gordon-Smith
There is an interesting item on stringsAsFactors in this useR! 2020 session: https://www.youtube.com/watch?v=X_eDHNVceCU=youtu.be It's about 27 minutes in. Chris Gordon-Smith On 15/07/2020 17:16, Marc Schwartz via R-help wrote: >> On Jul 15, 2020, at 4:31 AM, andy elprama wrote: >> >> Dear

Re: [R-es] Análisis de datos extremadamente atípicos

2020-07-19 Thread Carlos Ortega
Hola Ricardo, En estos casos, vas a poder visualizar mejor las distribuciones si usas gráficos del tipo "violinplots". Son especialmente útiles para poder visualizar cambios en distribuciones en el tiempo. Otra alternativa con la que puedes ver estas diferencias es con los gráficos del paquete

Re: [R-es] Análisis de datos extremadamente atípicos

2020-07-19 Thread Emilio L. Cano
Hola, Para los gráficos puedes cambiar a escala logarítmica (si los atípicos están por arriba) o alguna otra transformación. Para la comparación puedes intentar hacer un test de Kruskal-Wallis Un saludo, Emilio L. Cano http://emilio.lcano.com > El 19 jul 2020, a las 11:42, ricardo alva

[R-es] Análisis de datos extremadamente atípicos

2020-07-19 Thread ricardo alva
Hola amigos buenas noches. Estoy intentando comparar la distribución de una misma variable continúa pero en dos lapsos de tiempo diferentes. Lo malo es que los datos son demasiados atípicos y a través de box plots no se puede apreciar por la gran cantidad de atípicos que hay, lo que hace que las