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.139 tracks/r/exercises/pangram/example.R
trackler-2.2.1.138 tracks/r/exercises/pangram/example.R
trackler-2.2.1.137 tracks/r/exercises/pangram/example.R
trackler-2.2.1.136 tracks/r/exercises/pangram/example.R
trackler-2.2.1.135 tracks/r/exercises/pangram/example.R
trackler-2.2.1.134 tracks/r/exercises/pangram/example.R
trackler-2.2.1.133 tracks/r/exercises/pangram/example.R
trackler-2.2.1.132 tracks/r/exercises/pangram/example.R
trackler-2.2.1.131 tracks/r/exercises/pangram/example.R
trackler-2.2.1.130 tracks/r/exercises/pangram/example.R
trackler-2.2.1.129 tracks/r/exercises/pangram/example.R
trackler-2.2.1.128 tracks/r/exercises/pangram/example.R
trackler-2.2.1.127 tracks/r/exercises/pangram/example.R
trackler-2.2.1.126 tracks/r/exercises/pangram/example.R
trackler-2.2.1.125 tracks/r/exercises/pangram/example.R
trackler-2.2.1.124 tracks/r/exercises/pangram/example.R
trackler-2.2.1.123 tracks/r/exercises/pangram/example.R
trackler-2.2.1.122 tracks/r/exercises/pangram/example.R
trackler-2.2.1.121 tracks/r/exercises/pangram/example.R
trackler-2.2.1.120 tracks/r/exercises/pangram/example.R