similar to: Need help locating the longest series of consecutive numbers in a matrix

Displaying 20 results from an estimated 5000 matches similar to: "Need help locating the longest series of consecutive numbers in a matrix"

2008 Jun 15
1
Help finding the mode and maximum for a specified 'window' of time series data
I am relatively new to R, so apologize up front for my long question, particularly if there is too much or too little information. I have a large time series data set where each subject's behavior was originally coded on .25s intervals for 3min task. I am trying to determine if the findings are different depending on the coding interval (i.e. Compare .25s to 1s to 5s to 10s). I also need to
2012 Nov 02
2
Determine longest run of number
Does anybody know a way to determine the longest run of a number in a vector of numbers? For example if I have the following numbers: 0 0 1 1 1 1 0 1 1 0 0 0 1 1; how can I determine that the longest run of 1's = 4 and longest run of 0's = 3? Thanks, Mark
2007 Dec 27
1
A function for random test based on longest run (UNCLASSI FIED)
Classification: UNCLASSIFIED Caveats: NONE Thanks for your quick response. The program you mentioned below available from R is based on number of runs (up or down) not based on a longest length of runs of same events. To be more specific, for example, from a series, HHTHTTTTHHH, the number of runs are 5, and the longest length of runs of the same events is 4. I'll check for the website you
2013 Feb 28
2
Ayuda con función tapply
Hola Compañeros, Estoy tratando de "contar" utilizando la función tapply y length y obtengo un error que no entiendo. Agradecería su ayuda. Las líneas son las siguientes: UNO <- subset (datos, CRIH2008 == "VERDADERO") dim (UNO) Abund2008 <- tapply (UNO$Cons, list(UNO$Site, UNO$Trat), length, na.rm=T) Y obtengo este error: Error en FUN(X[[1L]], ...) : 2 arguments
2014 Aug 25
5
problema con campos que tienen formato fecha
Hola Javier, Muchas gracias por responder tan rápido! Yo trabajo en Mac OS X 10.9.4. Versión 0.98.953 de RStudio. Versión 3.0.2 (2013-09-25) de R. ## Este es el script que estoy trabajando. Se trata de una rutina para automatizar el cálculo de la duración del evento. setwd("/Users/angelacamargosanabria/Documents/ANGELITA/1-DOC/1-TESIS/4-PAPERS/1-Mamiferos/DATOS/Bases") BASE <-
2011 Mar 23
2
información sobre símbolos
Buenos días a todos, Una pregunta muy sencilla, podrían por favor informarme dónde puedo conocer el significado de símbolos como $, %, == que se utilizan frecuentemente en R? Gracias, Angela C. ---- *Angela Andrea Camargo Sanabria* Estudiante Doctorado en Ciencias Biológicas Laboratorio de Ecología de poblaciones y comunidades tropicales Centro de Investigaciones en Ecosistemas (CIEco) UNAM,
2009 Jul 29
3
Installing lme4 package in Windows Vista
Hi all, I have a problem with package installing in Windows, on my PC machine. The end goal is to be able to use the lme() function. Here's what I did so far: > install.packages("lme4") Warning in install.packages("lme4") : argument 'lib' is missing: using 'C:\Users\Angela\Documents/R/win-library/2.9' --- Please select a CRAN mirror for use in this
2016 Sep 07
3
tips para curso introductorio de R
Gracias chicos por sus opiniones y recomendaciones. Como dice Javier Rubén, justo lo que quiero es que los chicos aprendan bien los fundamentos de un lenguaje de programación orientado a objetos para que no solo copien el script de una librería, corran y ya. Quisiera que comprendieran los beneficios de R en términos de manipulación de sus bases de datos y optimización de procesos a través de los
2012 Jun 06
2
pregunta sobre libro de Legendre
Hola a todos, Por casualidad alguno que tenga el libro de Legendre de Numerical Ecology with R sabe dónde o cómo bajar los data sets que se mencionan para seguir los ejemplos? Muchas gracias por su ayuda! ---- *Angela Andrea Camargo Sanabria* Estudiante Doctorado en Ciencias Biológicas Laboratorio de Ecología de poblaciones y comunidades tropicales Centro de Investigaciones en Ecosistemas
2012 Dec 14
2
una programación sencilla
Hola a todos, Escribo para preguntarles sobre cómo programar algo, que estoy segura es algo bastante sencillo para muchos de Uds que tienen amplia experiencia programando. Lo describo a continuación. Tengo una base de datos (file = datos) de especies (de plantas) en donde cada fila es un individuo de una especie con ciertos atributos (alrededor de 1500 filas = individuos). Quería anexar en esta
2006 May 24
6
newbie question: missing template
Hi I''m new to this forum and new to Rails so excuse me if this is a daft question. I''m following the ONLamp.com tuturial and all has been well untill changing the template for the recipes. I have followed the instructions and added this code to the controller: class RecipeController < ApplicationController scaffold :recipe def list @recipes = Recipe.find_all end
2005 Mar 23
9
multiple vpn connections out via shorewall
Hi All, Just joined the list to try and solve a problem. To show that I''ve read the rules I''ll start with the requested info os linux kernel-2.4.27 with latest netfilter pom for gre and pptp conntrack etc iptables is 1.3.0 - downloaded and compiled with the pom stuff and the 2.4.27 kernel shorewall version shorewall-2.2.1-2 from rpm ip addr show [root@squid3 root]# ip addr
2012 Dec 04
5
Network traffic tool
Hi everybody, I have my firewall with shorewall runing and I dont have a proxy. I would like to know which tool can I use to log my web traffic from my users. I have ntop working but I dont think this tool helps me on this. Any suggestion? Thanks ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
2005 Jan 26
2
networks in R
Good afternoon, do you know if R provides a special package to make networks ? Thank you, Angela
2012 Jan 31
6
Shorewall and sshdfilter
Hi All! Been quite a few years and lots of water under the bridge but here I am back! I have a customer that has now decided they need a bit more bandwidth over and above their fixed line! They are not in a good area for ADSL because of copper theft and being a bit to far from the closest DSLAM! They have installed a wireless link and I have made certain that put it behind my simple iptables
2013 Feb 11
2
Alguien ha usado R para calcular curvas de rarefacción de especies en análisis de diversidad?
Quisiera intercambiar ideas con aquellos que lo hayan utilizado. Muchas gracias y bonito día! ---- *Angela Andrea Camargo Sanabria* Estudiante Doctorado en Ciencias Biológicas Laboratorio de Ecología de poblaciones y comunidades tropicales Centro de Investigaciones en Ecosistemas (CIEco) UNAM, campus Morelia Antigua Carretera a Pátzcuaro # 8701 Col. Ex-Hacienda de San José de la Huerta, CP 58190
2014 Aug 25
2
problema con campos que tienen formato fecha
Hola a todos, Tengo la siguiente inquietud, espero me puedan ayudar. Tengo una base de datos de la que estoy haciendo varios cálculos. Uno de ellos es la diferencia entre tiempos para conocer la duración de un evento. Aquí usé el paquete lubridate para tener fecha y hora en el formato adecuado. Cuando hago el calculo obtengo algo como esto: > (BASE$Time2[518]-BASE$Time2[516]) Time difference
2003 May 07
2
Extracting the longest entry
I have a matrix with NAs and want to extract the longest column. > is.matrix(foo) [1] TRUE > dim(foo) [1] 2000 75 > GetLength <- function(x) {length(na.omit(x))} > junk <- apply(foo, 2, GetLength) > junk [1] 1004 512 432 523 691 396 607 838 [9] 730 389 388 445 609 333 637 1024 [17] 1163 823 718 466 799 459 701 833 [25] 456 549 376 728 539 384
2007 Dec 27
2
A function for random test based on longest run (UNCLASSIFIED)
Classification: UNCLASSIFIED Caveats: NONE Hello, R users, Has anybody written a function for random test based on the length of longest run of same events. I really appreciate your help. Kyong Park Classification: UNCLASSIFIED Caveats: NONE [[alternative HTML version deleted]]
2009 Apr 10
3
Determine the Length of the Longest Word in a String
Hi Everyone, I'm new to programming R and have accomplished my goal, but feel that there is probably a more efficient way of coding this. I'd appreciate any guidance that a more advanced programmer can provide. My goal -- I would like to find the length of the longest word in a string containing many words separated by spaces. How I did it -- I was able to find the length of the