similar to: mean by year of ts object

Displaying 20 results from an estimated 30000 matches similar to: "mean by year of ts object"

2010 Jul 07
4
can't open file
I have a text file log2.log encoded Ansi in Windows. When I execute: out <- read.zoo(readLines(con <- file("log2.log", encoding="UCS-2LE")),FUN = as.chron) have errors: Error en file(file, "rt") : no se puede abrir la conexi?n Adem?s: Mensajes de aviso perdidos 1: In file(file, "rt") : s?lo fue usado el primer elemento del argumento
2010 May 08
3
Count cases in a list
Hi everybody, I would like to count how many times names in list L, nombreL, apear in list C, nombreC. Can I improve the next program? cuenta <- 0 topL <- length(nombreL) topC <- length(nombreC) for (i in 1:topL) { for (j in 1:topC) { k <- grep(noquote(nombreL[i]),nombreC[j])
2010 Jun 18
5
extract date time from a text file
I a have a text file where every line is like that: "2007-12-03 13:50:17 Juan Perez" ("yy-mm-dd hh:mm:ss First Name Second Name") I would like to make a data frame with two column one for date and the other one for name. When I use read.delim it was transformed in a data frame with 4 colums. Bye, Sebasti?n.
2010 Jun 25
3
gsub with regular expression
If I have a text with 7 words per line and I would like to put first and second word joined in a vector and the rest of words one per column in a matrix how can I do it? First 2 lines of my text file: "2008/12/31 12:23:31 numero 343.233.233 Rodeo Vaca Ruido" "2010/02/01 02:35:31 palabra 111.111.222 abejorro Rodeo Vaca" Results: Vector: 2008/12/31 12:23:31 2010/02/01 02:35:31
2019 Mar 11
2
Problema codificación archivos
Gracias Javier. Voy a probar. Saludos, Sebastián. Enviado desde Correo para Windows 10 De: Javier Marcuzzi Enviado: domingo, 10 de marzo de 2019 14:53 Para: Sebastian Kruk CC: Lista R Asunto: Re: [R-es] Problema codificación archivos Estimado Sebastian Kruk Yo utilizo Microsoft R-open 3.5.1 y la r-project se encuentra en 3.5.3, ¿si intenta con cualquiera de estas dos? Javier Rubén Marcuzzi
2020 Apr 17
3
Convertir lista de precios a dolares por gramo
Se ha borrado un adjunto en formato HTML... URL: <https://stat.ethz.ch/pipermail/r-help-es/attachments/20200417/11369880/attachment.html>
2011 Aug 15
2
temporal disaggregation
Dear R-users, I have an anual info of gross product and I would like to disaggregate to trimestral data. Can I import a matlab library of Quilis? ( http://www.mathworks.com/matlabcentral/fileexchange/24438-temporal-disaggregation-library ) Thanks, Sebasti?n.
2010 Apr 13
2
import file formatted RFC-822
Dear R-list users: I would like to import a database of web robots, http://www.robotstxt.org/db/all.txt, it?s formatted RFC-822, ?how can I do it? The RFC 822 specification defines a standard format for electronic messages, which consists of a set of header fields and an optional body. The headers contain information about the message, such as to whom it is being sent, from whom it is being
2012 Dec 04
6
leer .xlsm con read.xls
Buenas tardes usuarios de R. Estoy tratando de leer un archivo excel con read.xls usando la siguiente sentencia: read.xls("resultados.xlsm", colNames = TRUE, sheet = 1, type = "data.frame", from = 1, rowNames = NA, colClasses = "character", checkNames = TRUE, dateTime = "numeric", naStrings = NA, stringsAsFactors = F) Pero me da el siguiente error: Error
2009 Sep 23
2
reading web log file into R
If I have a web log file?as follows: #Software: Microsoft Internet Information Services 5.0 #Version: 1.0 #Date: 2007-12-03 13:50:17 #Fields: date time c-ip cs-username s-ip s-port cs-method cs-uri-stem cs-uri-query sc-status sc-bytes cs-bytes time-taken cs(User-Agent) cs(Cookie) cs(Referer) "2007-12-03 13:50:17 200.40.203.197 - 200.40.51.20 80 GET /localidades/img/nada.gif - 200 328 447 0
2013 Sep 26
1
ayuda con aggregate
Daniel, en vez de mean utilicé table. Entonces me genera una lista y quiero que quede una matriz. Unlist no me sirve porque me pasa todos los valores a un vector y me pierdo de saber a que caso corresponde. Saludos, Sebastián. El 26 de septiembre de 2013 16:50, daniel <daniel319@gmail.com> escribió: > Sebastián, tengo dificultades para entender si sigues con el ejemplo > anterior
2013 Sep 26
2
ayuda con aggregate
Estimados: Dentro del aggregate utilice un table, son cuatro los valores que puede tomar la variable, ¿como puedo desarmar la lista y crear cuatro variables nuevas donde le asigne 0 si no se da ese valor? Saludos, Sebastián. El 25 de septiembre de 2013 10:41, Jorge I Velez <jorgeivanvelez@gmail.com>escribió: > Sebastián, > > Una forma es > > aggregate(cbind(X1,X2) ~ B +
2007 Jul 04
0
how to plot a monthplot from a ts object where all individual years are shown (e.g. as lines) and can be compared with a "average or median " year?
Dear R help, I'm working with regular 8-daily time-series from 2000 up till now and would like to be able to compare years with each other. E.g. by creating a monthplot via the result of the stl() method it looks ok> but I was wondering whether there exist other methods to plot the different years as lines on top of each other such that years can be compared with each other (temporal
2010 Jul 07
9
problema con file
Hola. Tengo un archivo de texto con formato Ansi en Windows que lo quiero convertir en una serie temporal pero cuando lo trato de hacer con el siguiente comando: out <- read.zoo(readLines(con <- file("log2.log", encoding="UCS-2LE")),FUN = as.chron) Me da los siguientes errores: Error en file(file, "rt") : no se puede abrir la conexión Además: Mensajes de
2013 Feb 25
3
Achicar matriz de datos juntando varias variables en una
Estimados usuarios de R: Tengo una matriz de datos que la quiero achicar. Por ejemplo las primeras cuatro preguntas pueden tomar el valor "Sí" o "No". Entonces quiero crear una nueva variable que toma el valor 1 si se respondió si a la primera pregunta, 2, si fue Si a la segunda y así sucesivamente. Esto sucede con varias variables. ¿Cuál seria la forma mas eficiente de
2011 Aug 15
3
desagregación temporal
Estimados usuarios de R: Tengo que hacer una desagregación temporal de una serie anual del producto interno bruto en trimestral. ¿Hay alguna forma de utilizar la librería en matlab de Quilis de desagregación temporal en R? La libreria se puede bajar de http://www.mathworks.com/matlabcentral/fileexchange/24438-temporal-disaggregation-library Saludos, Sebastián.
2019 Mar 10
2
Problema codificación archivos
Estimados Usuarios-R: Muy buenos dias. Estoy teniendo problemas cuando grabo un script en R con la codificación del archivo. Tengo Windows 10 y R 3.5.2 64 bits. Por ejemplo grabo un script donde aparecen las palabras "España" y "España" . Cuando lo abro de vuelta se transforman en "EspaÃ?±a" y "España" respectivamente. Y si las dejo asi se siguen
2012 Nov 24
1
reshapeGUI en WIN7
Intento cargar el paquete reshapeGUI y me da el siguiente error: > library(reshapeGUI) Loading required package: reshape2 Loading required package: plyr Loading required package: gWidgets Attaching package: ‘gWidgets’ The following object(s) are masked from ‘package:plyr’:     id Loading required package: gWidgetsRGtk2 > reshapeGUI() Error en eval(expr, envir, enclos) : objeto
2013 Sep 25
3
ayuda con aggregate
Hola Juan. ¿Si yo en vez de querer obtener la media quiero sacar el porcentaje de casos que son menores que la media como lo haría? Saludos, Sebastián. El 17 de septiembre de 2013 03:34, Joan Carmona <jcmld@carmonarocha.com>escribió: > Hola Sebastián, > > Qué tal así:? > > > t<-data.frame(A=c(1,2,3,4,5,6,7,8,9,10),B=c(1,1,2,2,3,3,4,4,5,5),C=c(1,1,1,1 > >
2013 Sep 26
2
Help with list
I have a list that gives me the number of occurrences of numbers 1, 2, 3 and 4. Sometimes a single in a casa just appears 0 and 1, in others only 2, and every combination you can think of. Eg > Caso [1:2] $ `9` 0 1 2 10 $ `13` 0 2 2 4 Can I turn it into a matrix consisting of 4 columns in which I put the number of occurrences of the previous numbers, and for cases where it does