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.180 tracks/r/exercises/pangram/example.R
trackler-2.2.1.179 tracks/r/exercises/pangram/example.R
trackler-2.2.1.178 tracks/r/exercises/pangram/example.R
trackler-2.2.1.177 tracks/r/exercises/pangram/example.R
trackler-2.2.1.176 tracks/r/exercises/pangram/example.R
trackler-2.2.1.175 tracks/r/exercises/pangram/example.R
trackler-2.2.1.174 tracks/r/exercises/pangram/example.R
trackler-2.2.1.173 tracks/r/exercises/pangram/example.R
trackler-2.2.1.172 tracks/r/exercises/pangram/example.R
trackler-2.2.1.171 tracks/r/exercises/pangram/example.R
trackler-2.2.1.170 tracks/r/exercises/pangram/example.R
trackler-2.2.1.169 tracks/r/exercises/pangram/example.R
trackler-2.2.1.167 tracks/r/exercises/pangram/example.R
trackler-2.2.1.166 tracks/r/exercises/pangram/example.R
trackler-2.2.1.165 tracks/r/exercises/pangram/example.R
trackler-2.2.1.164 tracks/r/exercises/pangram/example.R
trackler-2.2.1.163 tracks/r/exercises/pangram/example.R
trackler-2.2.1.162 tracks/r/exercises/pangram/example.R
trackler-2.2.1.161 tracks/r/exercises/pangram/example.R
trackler-2.2.1.160 tracks/r/exercises/pangram/example.R