search for: colg

Displaying 3 results from an estimated 3 matches for "colg".

Did you mean: col
2011 Jun 28
2
Loop through each subject
...getwd() setwd("/Users/edwardpatzelt/Desktop/Neuroimaging/MERIT/SRRT/merge") dat <- read.table("test2.txt", header = TRUE, na.strings = NA, stringsAsFactors = FALSE, sep = "\t") for(i in 1:length(dat)) { for (i in 1:)dat[(unique(dat$Subject)),)] { colg <- dat[grep("Green", dat$CueProbe),] colg <- data.frame(colg$SRRTCue.OnsetTime/1000, (colg$SRRTFix2.OnsetTime- colg$SRRTCue.OnsetTime)/1000, (ifelse((colg$SRRTProbe.ACC == 1 | colg$Probe== "+"), 1, 0))) colr <- dat[grep("Red", dat$CueProbe),] colr...
2015 Feb 24
2
intercalar elementos de vectores
...t; tabla que tienes: > > > #Creo un data.frame de ejemplo todo con letras > > vtmp <- as.data.frame(lapply(letters,function(x) { rep(x,each=50) })) > > names(vtmp) <- paste("col",LETTERS,sep="") > > head(vtmp) > colA colB colC colD colE colF colG colH colI colJ colK colL colM colN > colO colP colQ colR colS colT colU colV colW colX colY colZ > 1 a b c d e f g h i j k l m n > o p q r s t u v w x y z > 2 a b c d e f g h i j...
2015 Feb 24
2
intercalar elementos de vectores
Excelente! Ahora corre muy rápido. No conocía ese método, creo que me va a resultar muy útil. Muchas gracias y saludos. Fernando Macedo El 24/02/15 a las 10:51, Jorge I Velez escribió: Fernando, Podrias intentar R> a <- rep('a', 5) R> b <- rep('b', 5) R> a [1] "a" "a" "a" "a" "a" R> b [1] "b"