school_friend | A Ruby interface to the Odnoklassniki API | REST library
kandi X-RAY | school_friend Summary
kandi X-RAY | school_friend Summary
A Ruby interface to the Odnoklassniki API
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of school_friend
school_friend Key Features
school_friend Examples and Code Snippets
Community Discussions
Trending Discussions on school_friend
QUESTION
So I have been trying to manipulate a dataset using data.table
. Like in STATA
, I wanted to categorise my factors using their values and not labels. I feel this is much safer for when working with categorical variables that have very strange labels with lots of spaces.
So far I have not been able to do this in R
. Is this even possible or am I missing something?
I have attached a dummy code to recreate this issue.
...ANSWER
Answered 2021-Jan-21 at 10:42A possible way would be to use the levels function like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install school_friend
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page