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.98 tracks/r/exercises/pangram/example.R
trackler-2.2.1.97 tracks/r/exercises/pangram/example.R
trackler-2.2.1.96 tracks/r/exercises/pangram/example.R
trackler-2.2.1.95 tracks/r/exercises/pangram/example.R
trackler-2.2.1.94 tracks/r/exercises/pangram/example.R
trackler-2.2.1.93 tracks/r/exercises/pangram/example.R
trackler-2.2.1.92 tracks/r/exercises/pangram/example.R
trackler-2.2.1.91 tracks/r/exercises/pangram/example.R
trackler-2.2.1.90 tracks/r/exercises/pangram/example.R
trackler-2.2.1.89 tracks/r/exercises/pangram/example.R
trackler-2.2.1.88 tracks/r/exercises/pangram/example.R
trackler-2.2.1.87 tracks/r/exercises/pangram/example.R
trackler-2.2.1.86 tracks/r/exercises/pangram/example.R
trackler-2.2.1.85 tracks/r/exercises/pangram/example.R
trackler-2.2.1.84 tracks/r/exercises/pangram/example.R
trackler-2.2.1.83 tracks/r/exercises/pangram/example.R
trackler-2.2.1.82 tracks/r/exercises/pangram/example.R
trackler-2.2.1.81 tracks/r/exercises/pangram/example.R
trackler-2.2.1.80 tracks/r/exercises/pangram/example.R
trackler-2.2.1.79 tracks/r/exercises/pangram/example.R