Odpowiedzi na to pytanie dotyczące SO zwróciły zestaw około 125 jedno- lub dwuliterowych nazw: /programming/6979630/what-1-2-letter-object-names-conflict-with-existing -r-objects
[1] "Ad" "am" "ar" "as" "bc" "bd" "bp" "br" "BR" "bs" "by" "c" "C"
[14] "cc" "cd" "ch" "ci" "CJ" "ck" "Cl" "cm" "cn" "cq" "cs" "Cs" "cv"
[27] "d" "D" "dc" "dd" "de" "df" "dg" "dn" "do" "ds" "dt" "e" "E"
[40] "el" "ES" "F" "FF" "fn" "gc" "gl" "go" "H" "Hi" "hm" "I" "ic"
[53] "id" "ID" "if" "IJ" "Im" "In" "ip" "is" "J" "lh" "ll" "lm" "lo"
[66] "Lo" "ls" "lu" "m" "MH" "mn" "ms" "N" "nc" "nd" "nn" "ns" "on"
[79] "Op" "P" "pa" "pf" "pi" "Pi" "pm" "pp" "ps" "pt" "q" "qf" "qq"
[92] "qr" "qt" "r" "Re" "rf" "rk" "rl" "rm" "rt" "s" "sc" "sd" "SJ"
[105] "sn" "sp" "ss" "t" "T" "te" "tr" "ts" "tt" "tz" "ug" "UG" "UN"
[118] "V" "VA" "Vd" "vi" "Vo" "w" "W" "y"
I kod importowy R:
nms <- c("Ad","am","ar","as","bc","bd","bp","br","BR","bs","by","c","C","cc","cd","ch","ci","CJ","ck","Cl","cm","cn","cq","cs","Cs","cv","d","D","dc","dd","de","df","dg","dn","do","ds","dt","e","E","el","ES","F","FF","fn","gc","gl","go","H","Hi","hm","I","ic","id","ID","if","IJ","Im","In","ip","is","J","lh","ll","lm","lo","Lo","ls","lu","m","MH","mn","ms","N","nc","nd","nn","ns","on","Op","P","pa","pf","pi","Pi","pm","pp","ps","pt","q","qf","qq","qr","qt","r","Re","rf","rk","rl","rm","rt","s","sc","sd","SJ","sn","sp","ss","t","T","te","tr","ts","tt","tz","ug","UG","UN","V","VA","Vd","vi","Vo","w","W","y")
Ponieważ chodziło o wymyślenie niezapomnianej listy nazw obiektów, których należy unikać, a większość ludzi nie jest tak dobra w zrozumieniu solidnego bloku tekstu, chciałbym to sobie wyobrazić.
Niestety nie jestem do końca pewien, jak to najlepiej zrobić. Myślałem o czymś w rodzaju wykresu łodygi i liścia, tylko dlatego, że nie ma powtarzalnych wartości, każdy „liść” został umieszczony w odpowiedniej kolumnie, a nie pozostawiony jako uzasadniony. Lub adaptacja w stylu chmury słów, w której litery są sortowane zgodnie z ich rozpowszechnieniem.
W jaki sposób można to najlepiej i najwyraźniej wizualizować?
Wizualizacje spełniające którekolwiek z poniższych kryteriów są zgodne z duchem tego pytania:
Główny cel: Zwiększenie zdolności zapamiętywania zestawu nazw poprzez ujawnienie wzorców w danych
Alternatywny cel: Podkreśl interesujące cechy zestawu nazw (np. Które pomagają zwizualizować rozkład, najczęściej używane litery itp.)
Preferowane są odpowiedzi w języku R, ale mile widziane są wszystkie ciekawe pomysły.
Ignorowanie nazw jednoliterowych jest dozwolone, ponieważ łatwiej je podać jako osobną listę.