Displaying 2 results from an estimated 2 matches for "caperf".
Did you mean:
caper
2010 May 18
3
"Re: Change class factor to numeric"
sorry I had a mistake sending my question without a subject. I do resend again. Please excuse me.
> Hello
> I have a data array with soil variables (caperf), in which the variable "clay" is factor (as I see entering str(caperf)) . I need to do a regression model, so I need to have arcilla (=clay) as a numeric variable. For that I have entered
>
> as.numeric(as.character(arcilla))
>
> and even entering
> 'as.numeric(levels...
2010 May 18
1
(no subject)
Hello
I have a data array with soil variables (caperf), in which the variable "clay" is factor (as I see entering str(caperf)) . I need to do a regression model, so I need to have arcilla (=clay) as a numeric variable.? For that I have entered
as.numeric(as.character(arcilla))
and even entering
'as.numeric(levels(arcilla))[arcilla]...