Skip to content

Instantly share code, notes, and snippets.

@BERENZ
Created September 10, 2026 11:57
Show Gist options
  • Select an option

  • Save BERENZ/b9e7ea84f99dbd28af27e686b559a3b3 to your computer and use it in GitHub Desktop.

Select an option

Save BERENZ/b9e7ea84f99dbd28af27e686b559a3b3 to your computer and use it in GitHub Desktop.
Analiza danych z ewaluacji
library(data.table)
library(readxl)
library(stringr)
publ <- read_excel("Załącznik_nr_2_-_publikacje_i_prawa_ochronne_w_ewaluacji_2026-09-07.xlsx") |> setDT()
publ[`Typ publikacji` == "artykuł" &
Dyscyplina == "ekonomia i finanse",
.(N=uniqueN(`Tytuł osiągnięcia`)),
.(czasopismo=str_to_lower(str_trim(`Tytuł czasopisma`)))][order(-N)]
publ[`Typ publikacji` == "artykuł" &
Dyscyplina == "ekonomia i finanse",
.(N=uniqueN(`Tytuł osiągnięcia`)),
.(czasopismo=str_to_lower(str_trim(`Tytuł czasopisma`)),
art = str_to_lower(str_trim(`Tytuł osiągnięcia`)),
podmiot=Podmiot)] -> podm_publ
podm_publ[,
.(odsetek_mdpi_inne=mean(czasopismo %in%
c("sustainability", "energies", "european research studies journal",
"agriculture (switzerland)")),
liczba_art_ogolem=.N),
podmiot ][order(-odsetek_mdpi_inne)] |> View()
publ[`Typ publikacji` == "artykuł" &
Dyscyplina == "nauki o zarządzaniu i jakości",
.(N=uniqueN(`Tytuł osiągnięcia`)),
.(czasopismo=str_to_lower(str_trim(`Tytuł czasopisma`)))][order(-N)] |> View()
publ[`Typ publikacji` == "artykuł" &
Dyscyplina == "nauki o zarządzaniu i jakości",
.(N=uniqueN(`Tytuł osiągnięcia`)),
.(czasopismo=str_to_lower(str_trim(`Tytuł czasopisma`)),
art = str_to_lower(str_trim(`Tytuł osiągnięcia`)),
podmiot=Podmiot)] -> podm_publ_zarz
podm_publ_zarz[,
.(odsetek_mdpi_inne=mean(czasopismo %in%
c("sustainability", "energies", "european research studies journal",
"agriculture (switzerland)")),
liczba_art_ogolem=.N),
podmiot ][order(-odsetek_mdpi_inne)] |> View()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment