search for: con

Displaying 20 results from an estimated 6787 matches for "con".

Did you mean: com
2015 May 15
2
comportamiento de data.table al hacer calculos por grupos
Muchas gracias Freddy y Carlos ... estuve intentando con .() y con list(), para calcular la media y el error estandar al mismo tiempo en dos columnas, pero me arrojaba un error que no supe interpretar. Ahora ya funciona como sugiere Carlos. Muchas gracias de nuevo. Saludos, Eric. On 14/05/15 19:28, Carlos Ortega wrote: > Hola, > > La f...
2013 Sep 06
2
Problema con filtros de datos en un data.frame
Estimados, tengo el siguiente problema: estoy trabajando con un data.frame que tiene 892 filas y 9 columnas, el cual adjunto para que puedan probar. Cuando consulto por las filas que cumplen una cierta condicion, por ejemplo, ... graph[graph$NCar==c("160s"),] obtengo el siguiente conjunto de datos: sol con dia NCar NIns isom area rep...
2018 May 26
2
Buffering in R 3.5 connections causes incorrect data in readChar
...uffer, rather than the current position in the file. This is a significant change of behavior from R-3.4.4. Below is a test case that I used to home in on the problem. --- p<-"test2.txt" cat("abcdefg hijklmn opqrstu",file=p) cat("read char after readline (h)\n") con <- file(p,"r") invisible(readLines(con,1)) print(readChar(con,1)) close(con) cat("read char after readline and seek (h)\n") con <- file(p,"r") invisible(readLines(con,1)) invisible(seek(con,seek(con))) print(readChar(con,1)) close(con) cat("read lines afte...
2013 Sep 06
3
Problema con filtros de datos en un data.frame
...ciono perfecto, muchas gracias Carlos ... si no es mucha la molestia, alguien podria explicarme la diferencia tecnica entre ambos signos, y porque == produce el resultado que produce ? en que casos deberia usar == y en que casos %in% ... cual es el significado de cada uno ? Disculpen que no me conforme solo con obtener el resultado adecuado, es solo que no me suena logico que == no produzca el resultado que uno se imagina al ver el signo :) Saludos cordiales y muchas gracias, Eric. On Fri 06 Sep 2013 07:25:43 PM CLT, Carlos J. Gil Bellosta wrote: > Hola, ¿qué tal? > > No u...
2011 Aug 14
3
Not sure how to use aggregate, colSums, by
...ame called test shown below that i would like to summarize in a particular way : I want to show the column sums (columns y ,f) grouped by country (column e1). However, I'm looking for the data to be split according to column e2. In other words, two tables of sum by country. One table for "con" and one table for "std" shown in column e2. Finally at the bottom of the two tables, I would like the overall sum /Totals for all the countries for the two columns (y,f). The lay outs for the two tables I'm looking for are also shown below in case my description isn't compl...
2004 Apr 23
0
Sum Sq of SPSS and R different for repeated measures Anova
...rom SPSS to R (1.9.0, winXP) and today I have data from two repeated measures experiments. For each of the subjects I've averaged for two within-SS factors (2 x 2, 4 means per subjects). One experiment had 16 subjects, the other one 25 (between-SS factor exp). So I have something like: avg.cond <- read.table('data.txt') # data set attached as text. avg.cond[1:5,] # pp pictcat cond rt exp #1 1 animal con 517.8125 exp11b #2 2 animal con 425.9375 exp11b #3 3 animal con 379.6563 exp11b #4 4 animal con 410.6563 exp11b #5 5 animal con 420.3125 exp11b Then I...
2015 May 14
3
comportamiento de data.table al hacer calculos por grupos
Estimada comunidad tengo un problema del que no encuentro datos que me ayuden mucho en la web. Estoy haciendo calculos por grupos con data,table. Tengo un archivo (zp.res) con tres columnas que clasifican los datos (sol, con, dia) y una columna de datos numericos (media), de la siguiente forma: sol con dia media 1: con 0 1 -22.6 2: con 0 1 -36.6 3: con 0 1 -35.6 y quiero calcular el promedio de &qu...
2004 Aug 06
5
Missing headers in Icecast2
Hi Karl, Thanks for your help, About the "Connection:" header, you are right, it's: "Connection: close" and NOT "Connection: keep-alive". The protocol when the SERVER sends the data is http 1.0. It's http 1.1 when the browser requests the data. I don't understand the "Content-Length: 54000000" he...
2013 Sep 10
1
Problema con filtros de datos en un data.frame
Muchas gracias por la explicación Isidro! El 10 de septiembre de 2013 08:19, Isidro Hidalgo <ihidalgo@jccm.es>escribió: > Cuando utilizas "==" estás comparando el vector "graph$NCar" (longitud 892) > con otro de longitud 2: c("160s","180s"). > Es decir, comparas el primer valor de "graph$NCar" con el primer valor de > c("160s","180s"), el segundo valor de "graph$NCar" con el segundo valor de > c("160s","180s"),...
2013 Jan 21
2
how to bread while loop reading from connection with read.csv
Hello, I'm trying to read a file rows at a time, so as to not read the entire file into memory.? When reading the "connections" and "readLines" help, and "R help archive," it seems this should be possible with read.csv and a file connection, making use of the "nrows" argument, and checking where the "nrow()" of the new batch is zero rows. >From certain posts, it see...
2006 Oct 09
1
Discussion starter for package level Connection API
Thought I'd try and start a discussion. Feel free to jump in. I guess R needs to strike the right balance between opening up the internals to package writers and not allowing them to do bad things. My first attempt at cracking this nut is to just memcpy() the Rconnection and not allow access to the private stuff: /* Alternative to allowing C code access to connection API. */ Rconnection R_GetConnection(Rconnection ucon, int idx){ Rconnection rcon; /* Valid connection? */ if ((rcon = getConnection(idx)) == NULL) return NULL; m...
2002 Dec 05
1
writing to gzfile: segmentation fault (PR#2347)
Full_Name: Vadim Ogranovich Version: Version 1.6.0 (2002-10-01) OS: Red Hat 7.1 Submission from: (NULL) (209.99.241.1) The following sequence of commands crashes my R session. The first weirdness happens after the second command that appears not to change the "foo.gz" file, no error generated. > con <- gzfile("foo.gz", open="w"); cat("goo\n", file=con); close(con) con <- gzfile("foo.gz", open="w"); cat("goo\n", file=con); close(con) &g...
2013 May 08
1
getting corrupted data when using readBin() after seek() on a gzfile connection
Hi, I'm running into more issues when reading data from a gzfile connection. If I read the data sequentially with successive calls to readBin(), the data I get looks ok. But if I call seek() between the successive calls to readBin(), I get corrupted data. Here is a (hopefully) reproducible example. See my sessionInfo() at the end (I'm not on Windows, where, acc...
2011 Feb 04
2
Strange behaviour of read and writeBin
To me it seems like writeBin() writes one char/byte more than expected. > con <- file("testbin", "wb") > writeBin("ttccggaa", con) > close(con) > con <- file("testbin", "rb") > readBin(con, what="character") [1] "ttccggaa" > seek(con, what=NA) [1] 9 > close(con) > con &l...
2016 Jul 07
2
NetworkManger creates extra bonds; is this a bug?
..., I see an unexpected beahviour from NetworkManager on CentOS 7.1. Using nmcli tool, I create a bond with two slaves as explained in the Red Hat 7.1 Networking guide. I enable slaves and master; bond works as expected. When I restart NetworkManager, it creates a new bond with the same name but not connected to any device. Two bonds with the same name is confusing for my other monitoring scripts. I'm wondering why a second bond is created? Is it a bug in NetworkManger? #Create a bond with two slaves nmcli con add autoconnect no type bond con-name bond0 ifname bond0 nmcli con mod bond0 ipv6....
2018 May 29
1
Buffering in R 3.5 connections causes incorrect data in readChar
Tomas, Thank you for the explanation. I see in the documentation: "These functions are intended to be used with binary-mode connections." So I see how using it on a text connection is undefined, and not a bug. An error or warning when attempting to use a it on a text connection would be helpful considering how the behavior has changed in R-3.5. On Tue, May 29, 2018 at 3:09 AM, Tomas Kalibera <tomas.kalibera at gma...
2013 Sep 06
0
Problema con filtros de datos en un data.frame
Hola, ¿qué tal? No uses == sino %in%. Un saludo, Carlos J. Gil Bellosta http://www.datanalytics.com El día 7 de septiembre de 2013 00:57, neo <ericconchamunoz en gmail.com> escribió: > Estimados, tengo el siguiente problema: estoy trabajando con un > data.frame que tiene 892 filas y 9 columnas, el cual adjunto para que > puedan probar. > > Cuando consulto por las filas que cumplen una cierta condicion, por > ejemplo, ... >...
2013 Sep 10
0
Problema con filtros de datos en un data.frame
Cuando utilizas "==" estás comparando el vector "graph$NCar" (longitud 892) con otro de longitud 2: c("160s","180s"). Es decir, comparas el primer valor de "graph$NCar" con el primer valor de c("160s","180s"), el segundo valor de "graph$NCar" con el segundo valor de c("160s","180s"), el tercer valo...
2007 Aug 14
4
Import of Access data via RODBC changes column name ("NO" to "Expr1014") and the content of the column
Dear all, I have some problems with importing data from an Access data base via RODBC to R. The data base contains several tables, which all are imported consecutively. One table has a column with column name "NO". If I run the code attached on the bottom of the mail I get no complain, but the column name (name of the respective vector of the data.frame) is "Expr1014" instead of "N...
2004 Dec 10
1
subset bug?
I ran into a problem with "subset" while working at home that I am not sure is a bug or not. I defined a custom function to take a data frame of tree positions, sizes, and types (containing the columns TRT, COMP, PLOT, X, Y, DBH and CON) and wanted to make a stem map of the plot using different symbols and colors to represent the different types of tree stems. I copied a bit of the code below, the part that gave me troubles: if(dim(subset(mat,CON==1 & DBH>11.43))[1]&gt...