search for: hugo_2

Displaying 1 result from an estimated 1 matches for "hugo_2".

Did you mean: hugo2
2008 Jul 18
2
name returned by lapply
Hi there, I have a very simple question. If I execute the following code: test <- function(x) { name <- paste(x,"info_within_function") c(1,2,3,4,5) } ret <- lapply(1:10, test) , I end up with a list and each entry is just numbered [[1]], [[2]], ... [[10]] How can I force the result entries gettings names which are determined within the function. For this example,