|
|
|
|
|
by wodenokoto
1693 days ago
|
|
Yes, it does. The ´collect()´ function at the end, is responsible for executing the previous chain in the database. The fact that ´tbl´ in the beginning is called with a connection, ensures that all the following functions don't execute on a dataframe, but instead builds up a query. R, kinda like Julia, executes different versions of a function, depending on the type of the first parameter. From an API point of view, I think it is absolutely ingenious! |
|
So that we can appreciate your point about the elegance of the API, how would you do the opposite to allow execution to take place on the data-frame?