Displaying 1 result from an estimated 1 matches for "150096_at".
2006 Mar 10
2
lapply and list attributes
Hi
I have a list that has attributes:
attributes(lis[2])
$names
[1] "150096_at"
I want to use those attributes in a function and then use lapply to
apply that function to every element of the list, eg for simplicity's
sake:
my.fun <- function(x) {
attributes(x)
}
Then
l2 <- lapply(lis, my.fun)
It seems that "attributes(x)" within the func...