R Programming Language Write Function Named Monthconvert X Fromlang Tolang Convert Month N Q43865634
IN R PROGRAMMING LANGUAGE-
Write a function named month_convert(x, from_lang, to_lang) thatwill convert month names from one language to another. The functionwill accept three arguments: x, which is a factor with monthinformation; the language from which we are translating from_lang;and the language to which we are translating to_lang. For example:x <- factor(c(“March”,”March”,”February”,”June”))month_convert(x, “English”, “Spanish”) will output: [1] marzo marzofebrero junio Levels: febrero junio marzo If the input contains avalue that is not a real month, then it will be replaced with NA. x<- factor(c(“March”,”March”,”February”,”June”,”Jaly”))month_convert(x, “English”, “Spanish”) [1] marzo marzo febrerojunio Levels: febrero junio marzo File to read is here-https://drive.google.com/open?id=1ci8M7kM9nIuJmgiB2CB8WHfPf_3HOQ6d–fEo7E2_80
IN R PROGRAMMING LANGUAGE-
Expert Answer
Answer to IN R PROGRAMMING LANGUAGE- Write a function named month_convert(x, from_lang, to_lang) that will convert month names fro…
OR