SDITools / adobeanalyticsr

R Client for Adobe Analytics API v2.0
Other
18 stars 9 forks source link

Write vignette on dimension ordering #140

Open charlie-gallagher opened 2 years ago

charlie-gallagher commented 2 years ago

Dimension ordering can make a dramatic difference in the time it takes to run a query, and we've included this point in the documentation.

However, I don't think we've mentioned how dimension ordering can change your results. We should outline in a vignette some guidelines for when dimension ordering matters, and when you can fiddle with it. At the very least, it deserves a comment in the documentation.

gilliganondata commented 2 years ago

I'm thinking what you're calling out is that the top value at each level is going to return the "top x" at that level. So, if you have dim_a and dim_b and are reporting visits and top = c(5,5), then:

(Um...okay...I see what you mean. This warrants some thought on how best to explain in the documentation and warrants a vignette to illustrate! And...is this what you're referencing?)

Do you have a couple of standard dimensions in mind that would be illustrative? I'm thinking (relatively) higher cardinality dimensions—page and mobiledevicename?

charlie-gallagher commented 2 years ago

Exactly, and that is a good start towards an explanation. It does deserve some thought to have a clear and simple example of when switching the order isn't the same. I don't have any standard dimensions in mind yet, but I'll think about it for a bit.