0
Follow
0
View

Error while conditionally adding columns to an existing dataframe

duanshaoqing 注册会员
2023-01-25 03:43

Are you en to using other packages? I cannot use googleLanguageR on my PC. But its documentation suggests using the package cld2.

From the documentation

https://cran.r-project.org/web/packages/googleLanguageR/googleLanguageR.pdf (pg.15)

# install.packages("cld2")
x = cld2::language("katten sidder på måtten")
y = cld2::detect_language("how are you")
x
y
> x
[1] "da"
> y
[1] "en"