Re: [R] Data conversion

2019-09-18 Thread Jim Lemon
Hi Edward, Say your "data frame" is named "epdat". This may do it: epmat<-matrix(epdat[10:289],nrow=28) colnames(epmat)<-sub("1","",names(epdat[10:289])[seq(1,270,by=28)]) This one looks like the Sorceror's Apprentice tangled with one of those experimental schedule scripting programs. Jim On Th

[R] Data conversion

2019-09-18 Thread Patzelt, Edward
Hi R Help, How would I convert the data below so that I have it formatted with trials along the rows and then each type of measure separately? e.g., Subject RT OnOff Feedback Trial_1 Trial_2 Trial_3 Trial_4 Thanks! Edward structure(list(TAP_ID = "967372 ", TAP_Date = NA_real_,

[R] data conversion (possibly with reshape package)

2012-05-23 Thread Martin Schilling
Hi everyone, I have an issue with a data conversion. First, I tried it with the reshape-package, but since it's quite a while that I used it, I feel kind of rusty... I have a data.frame like this: id Sample.Name Marker Allele.1 Allele.2sample_id

[R] Data conversion from class asc to class kasc (Adehabitat)

2010-10-12 Thread Neba Funwi-Gabga
Hello list, I am trying to do an Ecological Niche Factor Analysis using the adehabitat package, but I am facing problems with preparing my covariates for input. The covariates are of class "asc" and i need to get them to class "kasc" using the "as.kasc" function. But when I try to create the list,