Hello,
Suppose I have one vector of values or even matrix of those vectors and I
want to calculate q_k(V/k), where V is the vector, k is a quantile and q_k
is empirical k-quantile function. Finally I want to calculate Q_k=min(1,
q_k) for k=(0,1).
Can you please help me with this code?
quantile
Estimado Nivaildo
Por su correo creo que usted es de Cuba, entiendo que todo le debe salir muy
caro, pero hay alternativas gratis, algunos libros son gratis y buenos.
La mayoría está en inglés, sobre minería de datos hay uno gratis, en español
hay uno gráficos con R (creo que escrito en
Hi Luigi
I think your data is duplicated
> xtabs(~cluster+type+target,my.data)
, , target = A
type
cluster blank negative positive
run_1 222
run_2 000
, , target = B
type
cluster blank negative positive
run_1 000
Hola a todos, alguien que ya tenga en sus manos esos libros y/o otros más sobre
todo sobre estadística descriptiva, inferencial, minería de datos y big data, o
cualesquiera de R y que aunque haya pagado la ostia, no le importe compartirlo
conmigo que no tengo la posibilidad de pagar por ellos,
Hi Luigi,
Are you looking for something like this?
library(plotrix)
ylim=c(0,1.7)
png("lmplot.png",width=600,height=300)
par(mfrow=c(1,2))
brkdn.plot(value~type,data=my.data[my.data$target=="A",],
main="Run 1",ylab="Value",xlab="",xaxlab="target",ylim=ylim,
I am adding my message in the mail body as I found it missing from the mail
that finally got posted on the list.
I am trying to simulate a combination of two different random fields (yy1 and
yy2 different mean and correlation length) with an irregular boundary. I have
attached the picture of
> On Feb 15, 2017, at 1:43 PM, Jim Lemon wrote:
>
> Hi Malgorzata,
> The function "rxnrate" seems to want three values in a list with the
> names "k1", "k2" and "k3". If you are passing something with different
> names, it is probably going to complain, so the names "A",
Supongo que esta pregunta ya ha salido en esta lista. ¿Qué libro o documento me recomiendan para aprender a manejar el paquete ggplot2? ¿Existe algún paquete para crear gráficos al "estilo Excel"?
Muchas gracias y saludos.
___
R-help-es mailing list
hola, aqui una forma de hacerlo usando stack() y data.table()
library(data.table)
d <- read.csv("/home/neo/Desktop/beta.csv", header=TRUE, sep="\t")
d
d <- stack(d)
d <- as.data.table(d)
d[, mean(values), by=ind]
saludos,
Eric.
On 02/16/2017 01:11 PM, jbetanco...@iscmc.cmw.sld.cu wrote:
Carlos, probé en primer lugar tu propuesta. Pero:
as.data.table(datos)[, .N, by=pprfecbaja]
pprfecbajaN
1: 0001-01-01 2000
2: 1994-08-26 20
3: 2005-07-06 585
4: 2005-03-07 29
5: 2004-03-23 33
6: 2004-10-181
7: 1997-09-019
8: 1997-09-04 16
9: 1996-05-293
...
Hola, intenta convirtiendo "0001-01-01" a fecha con as.Date:
datos$pprfecbaja <- ifelse(datos$pprfecbaja==as.Date("0001-01-01"), NA,
datos$pprfecbaja)
ya que estas comparando una fecha con un string ("0001-01-01")
El 16 de febrero de 2017, 7:34, escribió:
>
Estimados
Quisiera calcular las medias de cada semana de una sola vez con un script.
Apreciaría su ayuda
sem01 sem02 sem03 sem04
43 46 49 42
67 57 74 87
33 39 38 34
82 55 59 44
33 39 38 34
saludos
José
--
Este
Excelente!
Muchas gracias a todos!!
Saludos.
El 16 de febrero de 2017, 13:06, Freddy Omar López Quintero <
freddy.lopez.quint...@gmail.com> escribió:
> Hola.
>
> 2017-02-16 9:34 GMT-03:00 Mauricio Monsalvo :
>
>> ¿Podrían por favor ayudarme a correr la sintaxis correcta?
dear all,
i have a set of data that is separated in the variables: cluster (two
runs), type (blank, negative and positive) and target (A and B), each
duplicated. I am plotting it with lattice and the result is a 2x2 matrix
plot in which the top two cells (or panels) are relative to run 2, the
Hola.
2017-02-16 9:34 GMT-03:00 Mauricio Monsalvo :
> ¿Podrían por favor ayudarme a correr la sintaxis correcta?
Esta es otra opción:
datos<-read.csv('datos.csv', sep=';', row.names=1)
> datos$pprfecbaja<- replace(as.Date(datos$pprfecbaja),
>
Hola,
Así funciona...
#
library(lubridate)
datos <- read.table("datos.csv", header = TRUE, sep = ";", as.is = TRUE)
#Primero quito fechas malas
datos$pprfecbaja <- ifelse(datos$pprfecbaja=="0001-01-01", NA,
datos$pprfecbaja)
# Convierto campo fechas en clase
Una opción podria ser: datos$pprfecbaja<-as. character(datos$pprfecbaja) ##transformar la variable de formato Date a formato Characterdatos$pprfecbaja[datos$pprfecbaja=="0001-01-01"]<-"-00-00" #reemplazar la fecha “0001-01-01” por una fecha inexistente
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible
I just picked this up over on "Vulture Central"
http://www.theregister.co.uk/2017/02/16/r_sql_server_great_but_beware/
The author seems both pleased and not pleased. Mainly digging at R's use
(or abuse) of memory being a cause of many failures. And the fact that is
is "slow" (states Python runs
Hola.
Tengo una duda con esta sintaxis. Tengo una variable con formato Date que
por algún motivo (el data.table viene de una consulta con PostgreSQL):
datos <- prov[, pprid, pprfecbaja]
str(datos)
Cuando intento quitar las fechas de bajas inválidas (0001-01-01) y
convertirlas a NA, la variable
Estimado Manuel,
muchas gracias por responder también.
Aqui están los ejemplos del libro "Tree diversity analysis” que yo estaba
siguiendo. La version actualizada del paquete BiodiversityR actualizo el
parámetro method. Entonces method=s ahora es method= pooled.
To calculate the total
21 matches
Mail list logo