Displaying 5 results from an estimated 5 matches for "jobstatus".
2018 Apr 10
4
convert numeric variables to factor
You are missing a comma between "MARITAL" and "JOBSTATUS".
On Tue, Apr 10, 2018 at 10:27 AM, Saif Tauheed <saif.tauheed at gmail.com>
wrote:
> I run this command for converting the numerical variable into factor.
> However, I get the following error message.
>
> > cols<- c(?GrMM", "RELG", "CASTE1",...
2018 Apr 10
0
convert numeric variables to factor
Thank you very much.
After that I have the following error:
cols<- c("GrMM", "RELG", "CASTE1", "SECTOR", "SECTOR4","AGE", "MARITAL", "JOBSTATUS", "ENG", "EDU", "PARENT_EDU", "MASSMEDIA_F", "MASSMEDIA_M", "HomeComputer", "HomeInternet")
> for (I in cols) {data.frame[,i]= as.factor(data.frame[,i])}
Error in sort.list(y) : 'x' must be atomic for 'sort...
2018 Apr 10
0
convert numeric variables to factor
I run this command for converting the numerical variable into factor. However, I get the following error message.
> cols<- c(?GrMM", "RELG", "CASTE1", "SECTOR", "SECTOR4","AGE", "MARITAL" "JOBSTATUS", "ENG", "EDU", "PARENT_EDU", "MASSMEDIA_F", "MASSMEDIA_M", "HomeComputer", "HomeInternet") for (i in cols) {data.frame[,i]= as.factor(data.frame[,i])}
Error: unexpected string constant in ?cols<- c(?GrMM", "R...
2018 Apr 09
2
convert numeric variables to factor
Hello,
Though Bert's and David's answers are what you should do, note that some
R functions that need factors will coerce their input variables when
necessary.
Have you tried to run the code you haven't posted without coercing to
factor? It might run...
Hope this helps,
Rui Barradas
On 4/9/2018 6:11 PM, David L Carlson wrote:
> Try the help files:
>
> ?factor
>
2016 Aug 09
1
C7 Backup problem
On Tue, August 9, 2016 11:51 am, Gordon Messmer wrote:
> On 08/08/2016 11:11 PM, Alessandro Baggi wrote:
>> | 78 | backup-fd | 2016-08-08 09:52:57 | B | F | 191,024 |
>> 7,978,295,072 | T |
>>
>> | 79 | backup-fd | 2016-08-08 12:10:31 | B | F | 0 |
>> 0 | A |
>>
>> | 80 | backup-fd | 2016-08-09 03:05:03 |