Sha256: 43ea6ca011eaf46739c22f3d6e72d2719570a961be5d9d518f1f1021df745e44

Contents?: true

Size: 313 Bytes

Versions: 172

Compression:

Stored size: 313 Bytes

Contents

library(magrittr)

is_pangram <- function(input) {

  input_letters <- gsub("[^A-Za-z]", "", input) %>% 
                    tolower() %>% 
                    strsplit("") %>% 
                    unlist() %>% 
                    unique() %>% 
                    sort()

  identical(input_letters, letters)

}

Version data entries

172 entries across 172 versions & 1 rubygems

Version Path
trackler-2.2.1.119 tracks/r/exercises/pangram/example.R
trackler-2.2.1.118 tracks/r/exercises/pangram/example.R
trackler-2.2.1.117 tracks/r/exercises/pangram/example.R
trackler-2.2.1.116 tracks/r/exercises/pangram/example.R
trackler-2.2.1.115 tracks/r/exercises/pangram/example.R
trackler-2.2.1.114 tracks/r/exercises/pangram/example.R
trackler-2.2.1.113 tracks/r/exercises/pangram/example.R
trackler-2.2.1.111 tracks/r/exercises/pangram/example.R
trackler-2.2.1.110 tracks/r/exercises/pangram/example.R
trackler-2.2.1.109 tracks/r/exercises/pangram/example.R
trackler-2.2.1.108 tracks/r/exercises/pangram/example.R
trackler-2.2.1.107 tracks/r/exercises/pangram/example.R
trackler-2.2.1.106 tracks/r/exercises/pangram/example.R
trackler-2.2.1.105 tracks/r/exercises/pangram/example.R
trackler-2.2.1.104 tracks/r/exercises/pangram/example.R
trackler-2.2.1.103 tracks/r/exercises/pangram/example.R
trackler-2.2.1.102 tracks/r/exercises/pangram/example.R
trackler-2.2.1.101 tracks/r/exercises/pangram/example.R
trackler-2.2.1.100 tracks/r/exercises/pangram/example.R
trackler-2.2.1.99 tracks/r/exercises/pangram/example.R