Displaying 1 result from an estimated 1 matches for "some_pattern".
Did you mean:
core_pattern
2008 Oct 23
1
naming list entries dynamically
...1.6 1.8 2.0...
$file2.txt
[1] 1.0 1.2 1.4 1.6 1.8 2.0...
That's what I would like to see. But I got stucked coding it. Web search
doesn't helped me a lot. Here is some code I thought it somehow would work
like this:
<----
flist <- list()
fname <- list.files(pattern="some_pattern.txt")
for(i in 1:length(fname)) {
flist$"how_do_I_name_it_dynamically?" <- read.table(fname[i],
header=FALSE)
}
---->
Second: I assume to use lists in R more or less like Matlab-structs. I
hope that's not compleatly wrong... ?
Appreciating any help and hints,
Torsten