Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NEW_UPC IRI_KEY WEEK UNITS DOLLARS F D PR
- 11820005991 1073521 1230 1 14.29 NONE 0 0
- 11820005991 1073521 1232 1 14.29 NONE 0 0
- 11820005991 1073521 1235 1 14.29 NONE 0 0
- 11820005991 1073521 1239 1 14.29 NONE 0 0
- 11820005991 1073521 1241 3 42.97 NONE 0 0
- 11820005991 1073521 1243 1 14.29 NONE 0 0
- 11820005991 1073521 1244 5 71.45 NONE 0 0
- ----------- ------- ---- - ----- ---- - -
- 11820005991 1073525 1218 2 27.98 NONE 0 0
- 11820005991 1073525 1224 1 13.99 NONE 0 0
- 11820005991 1073525 1229 1 12.99 NONE 0 1
- 11820005991 1073525 1236 1 12.99 NONE 0 0
- ----------- ------- ---- - ----- ---- - -
- df1 %>% group_by(NEW_UPC,IRI_KEY) %>% summarise(Periods = n_distinct(WEEK))
Add Comment
Please, Sign In to add comment