I'm getting unexpected results when attempting to pipe inside map()
map(ls(), ~ . %>% get %>% dim)
returns the following message:
Functional sequence with the following components:
1. get(.)
2. dim(.)
Use 'functions' to extract the individual functions.
I don't really know how functions() would get me the result I want.
Is there a way to do it with pipes and map?
Without using pipes,
map(ls(), ~ get(dim(.)))
, the result is what I would expect.