I'm working with a list that has different types of objects and that's preventing me from using rbind. I just need to filter out the lines with Type/Class function. Thanks in advance!
You can use sapply to get the class of each element and filter from there:
sapply
example_list <- list("df" = iris, "vector" = letters, "number" = 5, "fun" = mean) example_list[sapply(example_list, class) != "function"]
1.4m articles
1.4m replys
5 comments
56.8k users