MansMeg / SwedishPolls

A repository containing data for swedish opinion polls.
43 stars 17 forks source link

SCB jun 2024 #299

Closed StaffanBetner closed 2 months ago

MansMeg commented 2 months ago

Hej!

Verkar vara ngt fel?

Check on 'rowSums(dat[!incorrect_polls, 3:11], na.rm = TRUE)' failed: Element 2 is not <= 100.01 Additional info: Parties do not sum to 87.9 < x <= 100 Backtrace: ▆

  1. └─checkmate::expect_numeric(...) at test-polls_data.R:33:3
  2. └─checkmate::makeExpectation(x, res, info, label) ── Failure ('test-polls_data.R:34:3'): get_polls() ───────────────────────────── Check on 'rowSums(dat[1:100, 3:11], na.rm = TRUE)' failed: Element 2 is not <= 100 Additional info: Parties do not sum to 95 < x < 100 Backtrace: ▆
  3. └─checkmate::expect_numeric(...) at test-polls_data.R:34:3
  4. └─checkmate::makeExpectation(x, res, info, label)

[ FAIL 2 | WARN 3 | SKIP 0 | PASS 37 ]

StaffanBetner commented 2 months ago

Det är problem med Ipsos-mätningen som @jensfinnas la upp

jensfinnas commented 2 months ago

Ipsos avrundningar summerade till 101. Därför failar testerna.