This is not an R question.
Your question indicates that you really need to learn some statistics.
To answer the very last part:
> pchisq(430,3,lower=FALSE)
[1] 7.020486e-93
And if that is not 0 to all intents and purposes, then God help us all.
cheers,
Rolf Turner
On 19/05/17 12:48, Anne
Dear all,
I have a question concerning the p-value. When running log-rank test I get
a p-value = 0.
What is it mean? Can this be true? Why aren´t there decimal points? Is
there a way to find out the exact p-value?
Here is the output:
> survdiff(Surv(tempo2,status)~tphist, data=base,rho=0)
Call:
Hi Jeff,
Thank you a lot!
Best,
Yen
-Original Message-
From: Jeff Newmiller [mailto:jdnew...@dcn.davis.ca.us]
Sent: Thursday, May 18, 2017 11:11 PM
To: r-help@r-project.org; Yen Lee
Subject: Re: [R] Question about change the length of a string.
http://stackoverflow.com/questions/2261079/how-to-trim-leading-and-trailing-whitespace-in-r
--
Sent from my phone. Please excuse my brevity.
On May 18, 2017 8:57:51 PM PDT, Yen Lee wrote:
>Hello everyone,
>
>
>
>I have a question and I need your precious kind help.
>
>
Hello everyone,
I have a question and I need your precious kind help.
I am working on matching two string. However, the length of the two strings
is different. For example, one is "example" (nchar=7), the other one is
"example " (nchar=10). The R considers them as different strings but
Estimados
Hay un sitio con recursos en varios lenguajes, entre estos R, puede ser bueno
como fuente de recursos y hay unos datos que me parecieron interesantes de R
(muy resumido como curiosidad).
https://libraries.io/languages/R
Javier Rubén Marcuzzi
[[alternative HTML version
Hi Thambu,
Try downloading the package from CRAN. For example, I just tried this
with the rgdal package as I need to use it.
The package (rgdal_1.2-7.zip) is saved on the local hard disk. Then
find out where your R executable is. For me it is:
E:\jim\R\R-3.3.3\bin\x64\R.exe
Now open a "Command
Hello,
I changed the name of a function, and updated my R packages with
update.packages(ask=FALSE), and I have had a curious (to me) change in show
method. I am developing a package, and a generic show method I defined for
my S4 class is not autocalled when I type the object name - object_name;
Brilliant, David, thank you so much!
Cheers,
Rune
> 16. mai 2017 kl. 18.44 skrev David L Carlson :
>
> Fixing a typo in the original, adding a simplification, and using
> dissimilarity instead of similarity:
>
> set.seed(42)
> dta <- data.frame(ID=1:7,
You can modify your original code to get what you want:
do.call(rbind, lapply(split(data.frame(test), test[,c("id")]), function(x)
as.matrix(x[sample(nrow(x), 1), ])))
# xcor ycor id
# 146 1
# 242 2
But Bert's way is simpler:
indx <- tapply(seq_along(test[, "id"]), test[,
Hola,
En ese caso, lo que tienes que usar en la función "lag()", que está en el
paquete base, aunque trate sobre series temporales.
O puedes utilizar funciones equivalentes en los varios paquetes que tratan
series temporales (forecast, xts...).
Gracias,
Carlos Ortega
www.qualityexcellence.es
El
Si, busca/mira "Shiny"...
Saludos,
Carlos Ortega
WWE.qualityexcellence.es
El El jue, may. 18, 2017 a las 6:55 PM, WILMER CONTRERAS SEPULVEDA <
wilme...@ufps.edu.co> escribió:
> Hola Buenos días. Quisiera saber si existe un paquete en R para crear un
> GUIDE como se hace facilmente en Matlab.
If I understand corrrectly, this is easily accomplished in base R via
?tapply and indexing.
e.g.
set.seed(1234) ## for reproducibility
grp <- sample.int(5,size = 30,rep = TRUE) ## a grouping vector
## Could be just a column of your matrix or frame
indx <- tapply(seq_along(grp),grp, sample,size
Estimado Javier Valdes Cantallopts
Entonces sus datos son distintos, es una fecha mensual y a esa fecha tiene
asociada la cantidad de precipitaciones mensuales correspondientes a ese mes
más la suma de los meses anteriores, por lo cual en diciembre tiene el
acumulado anual, que en sus datos
Hola Buenos días. Quisiera saber si existe un paquete en R para crear un
GUIDE como se hace facilmente en Matlab.
Muchas gracias.
Wilmer Contreras S.
[[alternative HTML version deleted]]
___
R-help-es mailing list
R-help-es@r-project.org
Interesante.
Cada uno de los valores de mi tabla tiene asociada una fecha.
Se le podría asignar un tipo de “break” ,para que le “diff” sea asociado a
cada mes? Por ejemplo?
[Descripción: FIRMA3]
De: Carlos Ortega [mailto:c...@qualityexcellence.es]
Enviado el: jueves, 18 de mayo de 2017 12:35
Hola,
Hay una función en "R" que permite hacer ese cálculo "diff()".
#-
> DF <- read.table(textConnection(val_cum), as.is = TRUE)
> DF
V1
11
25
38
4 10
5 20
6 30
7 50
8 80
9 120
10 125
11 200
12 250
> diff(DF$V1, 1)
[1] 4 3 2 10 10 20 30 40 5
Hi Marine,
your manipulation of the matrix is quite convoluted, and it helps to expand
a bit:
test_lst <- split(test, test[,c("id")])
test_lst$`1`
after splitting, your matrix has gone back to be a plain vector, which
makes the sampling fail.
The reason is that, a matrix - behind the scenes -
Hola
Solo extraer los montos correspondientes a cada mes. Solo tengo la serie
acumulada anual.
[Descripción: FIRMA3]
De: Javier Marcuzzi [mailto:javier.ruben.marcu...@gmail.com]
Enviado el: jueves, 18 de mayo de 2017 11:14
Para: Javier Valdes Cantallopts (DGA); Carlos Ortega
Hello,
I would like to randomly select one row by group from a matrix. Here is an
example where there is one row by group. The code gives an error message:
test <- matrix(c(4,4, 6,2, 1,2), nrow = 2, ncol = 3, dimnames = list(NULL,
c("xcor", "ycor", "id")))
do.call(rbind, lapply(split(test,
Estimado Javier Valdes Cantallopts
Hay algo que no comprendo, usted dice que desea extraer los datos mensuales
desde el acumulado.
¿Sería algo como, el año 2000 llovió 2300 ml? A partir de esto conocer las
precipitaciones en enero, febrero, etc.
Ahora tengo mis dudas, si usted tiene los datos
Hola estimados:
He tratado de encontrar la mejor forma de automatizar un proceso de "datos
mensuales de precipitación".
El tema es que tengo solo la serie acumulada anual de Pp. Por ende, busco una
forma de plotear un gráfico, extrayendo "los datos mensuales desde el acumulado"
Ejemplo;
ene
feb
> On 16 May 2017, at 17:06, Abdelrahman, Omar (RER)
> wrote:
>
> I am trying to produce multiple violin plots by 3 categorical variables, each
> violin representing 1 year worth of data. The variables are:
>
> Watershed (7 levels: county canals)
>
> Geography
Many thanks Jeff! I knew it would require a loop approach, so I will now
explore that with the code you suggested.
-Original Message-
From: Jeff Newmiller [mailto:jdnew...@dcn.davis.ca.us]
Sent: Wednesday, May 17, 2017 5:19 PM
To: Abdelrahman, Omar (RER)
Data? It's difficult to do anything without some test data.See How to make a
great R reproducible example? or http://adv-r.had.co.nz/Reproducibility.html
with particular reference to the use of dput() as the best way to provide
sample data.
|
|
|
| ||
|
|
|
| |
Thanks David! It worked!
On 17 May 2017 at 23:39, David Winsemius wrote:
>
>> On May 17, 2017, at 1:01 PM, Davide Piffer wrote:
>>
>> Thanks! This gets closer to the solution but a small problem remains.
>> I get 2 rows and only one column,
Hola.
Os paso información sobre las próximas jornadas de usuarios de R en
Granada.
La Asociación R-Hispano tiene el placer de anunciar la celebración de las
IX Jornadas de Usuarios de R. En esta ocasión, será la Universidad de
Granada , en la ETS de Ingenierías Informática y de Telecomunicación
27 matches
Mail list logo