vendredi 30 janvier 2015

rpy2 : characters are not working


Vote count:

0




python code:



import rpy2.robjects as robjects

rCommand='''gender <- c("남자", "남자", "남자", "여자", "여자", "여자", "여자", "여자")
age <- c(23, 25, 27, 29, 31, 33, 35, 37)
outdf <- data.frame(gender, age)
'''
robjects.r(rCommand)
resultDf_r=robjects.globalenv["outdf"]

print type(resultDf_r)


Korean characters makes the python.exe killed.


I couldn't find any solution.


Any help would be appreciated.



asked 2 mins ago







rpy2 : characters are not working

Aucun commentaire:

Enregistrer un commentaire