Re: [R-es] (sin asunto)

2017-02-06 Thread Isidro Hidalgo Arellano
Hola: ¿La "S" tienes que ponerla en mayúscula? ¿getSymbols() en lugar de getsymbols()? Un saludo Isidro Hidalgo Arellano Observatorio del Mercado de Trabajo Consejería de Economía, Empresas y Empleo http://www.castillalamancha.es/ -Mensaje original- De: R-help-es

[R-es] (sin asunto)

2017-02-06 Thread José A. Artés
A pesar de haber instalado el paquete quantmod , cuando utilizó la función getsymbols() me sale el sugiere mensaje: Error could not find función "getSymbols". Al quién sabe porqué? Enviado desde mi iPad ___ R-help-es mailing list

Re: [R] roxygen2 v6.0.0

2017-02-06 Thread Bert Gunter
Marc: You miss Yihui's point I think: roxygen2 will generate the (Namespace and other) files for you. See its documentation for how (the directives to put in your comments). -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into

Re: [R] diff doesnot work

2017-02-06 Thread William Dunlap via R-help
diff() does not work on data.frames so you need to give it a column from the data.frame, as a vector. diff(data.frame(P=c(1,2,3,5,7,11,13,17))$P) [1] 1 1 2 2 4 2 4 You get different errors for multi- and single-column data.frames > diff(data.frame(P=c(1,2,3,5,7,11,13,17),

[R] diff doesnot work

2017-02-06 Thread george brida
Dear R users, I have a txt file entitled coc composed by one column of numeric values without header and having 50 rows. This file is under the following path: C:\\Users\\intel\\Documents\\TR I have written the following lines:

[R] Revolutions blog: January 2017 roundup

2017-02-06 Thread David Smith via R-help
Since 2008, Microsoft (formerly Revolution Analytics) staff and guests have written about R every weekday at the Revolutions blog: http://blog.revolutionanalytics.com and every month I post a summary of articles from the previous month of particular interest to readers of r-help. And in case

Re: [R] how to interpret t.test output

2017-02-06 Thread Jim Lemon
Hi Somayya, When you perform a t-test on two sets of numeric values, the answer you get tells you how likely it is that those two sets of numbers came from the same distribution. What most people are interested in is whether the means of those two distributions are different. Let's see, you seem

Re: [R] Beginner needs help with R

2017-02-06 Thread David Winsemius
> On Feb 6, 2017, at 9:08 AM, Jeff Newmiller wrote: > > I think it is important to point out that whenever R treats a number as a > numeric (integer or double) it loses any base 10 concept of "leading zero" in > that internal representation, so in this expression >

Re: [R-es] Perfiles longitudinales con eje de abscisas adaptado a cada individuo

2017-02-06 Thread Francisco Javier
Hola, Por si a alguien le sirve, he encontrado una posible soluci�n a la duda que me planteaba en este mismo hilo el pasado 1 de febrero: par(mfrow = c(2, 1), las = 1) for(i in 1:length(unique(dt$id))) { kat <- factor(dt$id, labels = 1:length(unique(dt$id))) maxid <- max(table(dt$id))

Re: [R] Marg.fct function

2017-02-06 Thread James Henson
Greetings Peter and Jeff, Thanks for this information. Will try these type of analyses in SAS. Sure they are doable in R, but developing a procedure is difficult. Alan Agresti gives a cookbook SAS method in An Introduction to Categorical Analysis. Thanks, James On Sun, Feb 5, 2017 at 3:47 PM,

Re: [R] regex [:digit:] gives diffrent result

2017-02-06 Thread William Dunlap via R-help
Shouldn't your "[:digit:]" be "[[:digit:]]"? Bill Dunlap TIBCO Software wdunlap tibco.com On Mon, Feb 6, 2017 at 10:36 AM, Tilmann Faul wrote: > Using R is a grate advantage, thanks for your work. > > Using regex under R 3.1.1, Debian 8.6 jessy works fine. > >

[R] regex [:digit:] gives diffrent result

2017-02-06 Thread Tilmann Faul
Using R is a grate advantage, thanks for your work. Using regex under R 3.1.1, Debian 8.6 jessy works fine. str_detect("16-03-08", "[:digit:]{2}") [1] TRUE str_detect("16-03-08", "[0-9]{2}") [1] TRUE runing the same code under R 3.3.2 backport, Debian 8.6 jessy gives a different result. This is

Re: [R] roxygen2 v6.0.0

2017-02-06 Thread Marc Girondot via R-help
Le 06/02/2017 à 17:14, Yihui Xie a écrit : If your package source is version controlled (meaning you are free to regret any time), I'd recommend you to delete the three files NAMESPACE, chr.Rd, and essai-package.Rd. Then try to roxygenize again. Basically the warnings you saw indicates that

Re: [R] how to interpret t.test output

2017-02-06 Thread Jeff Newmiller
Perhaps someone could, but: 1) It is normal on public Internet mailing lists and forums to simply ask the actual question and let people respond if they know the answer, rather than asking for permission to ask. 2) You should read the Posting Guide for this mailing list... your question does

Re: [R] Beginner needs help with R

2017-02-06 Thread Jeff Newmiller
I think it is important to point out that whenever R treats a number as a numeric (integer or double) it loses any base 10 concept of "leading zero" in that internal representation, so in this expression seq2 <- paste0("DQ", sprintf("%06d", seq(060054, 060060))) the arguments to seq have

Re: [R] roxygen2 v6.0.0

2017-02-06 Thread Yihui Xie
If your package source is version controlled (meaning you are free to regret any time), I'd recommend you to delete the three files NAMESPACE, chr.Rd, and essai-package.Rd. Then try to roxygenize again. Basically the warnings you saw indicates that roxygen2 failed to find the line % Generated by

[R] roxygen2 v6.0.0

2017-02-06 Thread Marc Girondot via R-help
Hi, I used roxygen2 v5.0.1 to document my package, and all was ok. I have just updated to roxygen2 v6.0.0 and my script is broken and I can't find why. I have done a simple version of a package folder as a test with 3 files: chr.R, essai-package.R and DESCRIPTION. Previously, I did:

[R] how to interpret t.test output

2017-02-06 Thread Gardee, Somayya
Hello for my project I am trying to write up my results from the paired t-test I conducted. Please could someone help. Thank you, Somayya Gardee NHSGG Disclaimer The information contained within this e-mail and in any

Re: [R] Beginner needs help with R

2017-02-06 Thread Adrian Dușa
Two methods, among others: seq1 <- paste("DQ", sprintf("%0*d", 6, seq(060054, 060060)), sep = "") or seq1 <- paste("DQ", formatC(seq(060054, 060060), dig = 5, flag = 0), sep = "") Hth, Adrian On Mon, Feb 6, 2017 at 3:50 AM, Nabila Arbi wrote: > Dear R-Help Team!

Re: [R] Beginner needs help with R

2017-02-06 Thread jim holtman
You need the leading zeros, and 'numerics' just give the number without leading zeros. You can use 'sprintf' for create a character string with the leading zeros: > # this is using 'numeric' and drops leading zeros > > seq1 <- paste("DQ", seq(060054, 060060), sep = "") > seq1 [1] "DQ60054"

Re: [R] Beginner needs help with R

2017-02-06 Thread Ivan Calandra
Hi Nabila, This is because you ask to create a sequence with seq(), which does not make much sense with non numeric data. That's why R trims the 0. One alternative would be: seq2 <- paste("DQ0", seq(60054, 60060), sep = "") Would that work for you? HTH, Ivan -- Ivan Calandra, PhD MONREPOS

Re: [R] Beginner needs help with R

2017-02-06 Thread Adams, Jean
Try this: seq1 <- paste("DQ0", seq(60054, 60060), sep = "") Jean On Sun, Feb 5, 2017 at 7:50 PM, Nabila Arbi wrote: > Dear R-Help Team! > > I have some trouble with R. It's probably nothing big, but I can't find a > solution. > My problem is the following: > I am

[R] What does ksmooth() do that NadarayaWatsonkernel() does not?

2017-02-06 Thread Jesper Hybel Pedersen
What does the function ksmooth() to correct bias? Reading articles gives me the formula: \frac{$B-t(B^n_{i=1}K_h(x-x_i)y_i}{$B-t(B^n_{j=1}K_h(x-x_j)} For the Nadaray-Watson estimator. The same formula is stated in the documentation for the function: NadarayaWatsonkernel(x, y, h,

[R] Beginner needs help with R

2017-02-06 Thread Nabila Arbi
Dear R-Help Team! I have some trouble with R. It's probably nothing big, but I can't find a solution. My problem is the following: I am trying to download some sequences from ncbi using the ape package. seq1 <- paste("DQ", seq(060054, 060060), sep = "") sequences <- read.GenBank(seq1, seq.names

[R] [R-pkgs] usmap v 0.1.0 released

2017-02-06 Thread Paolo Di Lorenzo
Hello useRs, I am announcing the release of my first package, usmap ( http://cran.r-project.org/package=usmap). "usmap" is a package to aid in the creation of US choropleths that include Alaska and Hawaii. It is still in its early stages (v 0.1.0) but I hope to improve it with added

[R-es] libreria(s) preparar datos

2017-02-06 Thread Pedro Concejero Cerezo
Amigos eRReros Tengo (como todos) el problema de preparar datos si es posible de forma automatica. He estado usando caret para quitar near-zero-variance y otras, pero resulta pesado y hay cosas que no hace o no se como hacer. Sobre todo reagrupar niveles de factores... He encontrado vtreat

Re: [R-es] help

2017-02-06 Thread Carlos Ortega
Hola, Varias cosas que puedes mirar: - Puedes instalar varias versiones de R en Mac. - Para gestionar las dependencias de librerías para cada versión, mira las opciones que te ofrece el paquete "packrat" que justamente está pensado para este tipo de cosas: gestionar los paquetes