Skip to content

Instantly share code, notes, and snippets.

@trisonysrg
trisonysrg / correct_word.R
Last active October 24, 2017 06:20
Change the incorrect word into the correct word according to KBBI
# Cek apakan input merupakan scalar
is.scalar <- function(input)
{
input <- unlist(strsplit(input, "\\s+"))
m<-length(input)
for(j in 1:m)
{
if(!is.na(suppressWarnings(as.numeric(input[j]))))
{
input[j]<-input[j]