how can i convert this python code into r?
# Convert categorical features to continuous features with Label Encoding from sklearn.preprocessing import LabelEn