Re: [R] lists and rownames

2016-04-18 Thread jim holtman
You can always add those names to the list: is this what you are after? > example.names <- c("con1-1-masked-bottom-green.tsv", "con1-1-masked-bottom-red.tsv" + , "con1-1-masked-top-green.tsv","con1-1-masked-top-red.tsv") > example.list <- strsplit(example.names, "-") > names(example.l

Re: [R] lists and rownames

2016-04-18 Thread Sarah Goslee
They aren't being stored, they are being generated on the fly. You can create the same names using make.names() example.names <- c("con1-1-masked-bottom-green.tsv", "con1-1-masked-bottom-red.tsv", "con1-1-masked-top-green.tsv", "con1-1-masked-top-red.tsv") example.list <- strsplit(example.names,

[R] lists and rownames

2016-04-18 Thread Ed Siefker
I'm doing some string manipulation on a vector of file names, and noticed something curious. When I strsplit the vector, I get a list of character vectors. The list is numbered, as lists are. When I cast that list as a data frame with 'as.data.frame()', the resulting columns have names derived fr