search for: numread

Displaying 2 results from an estimated 2 matches for "numread".

Did you mean: num_read
2017 Oct 23
2
A list of data frames and a list of colnames.
I have a list of file names, and a list of data frames contained in those files. mynames <- list.files() mydata <- lapply(mynames, read.delim) Every file contains two columns. > colnames(mydata[[1]]) [1] "Name" "NumReads" > colnames(mydata[[2]]) [1] "Name" "NumReads" I can set the colnames easily enough with a for loop. for (i in seq_along(mynames)) { colnames(mydata[[i]])[2] <- mynames[i] } Is there a nicer way to do this?
2009 Sep 20
1
Return a list from a .Call but segfaults
...There 2*I such pairs( (Ki,KDatai), (Vi,VDatai)) The numbers Ki(and Vi) are written in network order. I am returning a list of I elements each element a list of two elements corresponding to KData and VData (which are serialized R objects) . ll <- .Call("returnListOfKV", rawkv, numread) When use the function with browser(), and type head(ll) i get valid results. However, i get a segfault when the code runs the next line j <- append(j,ll) (where j was defined as vector(mode='list') ) The code below looks alright, but it appears to crash when getting copied. N...