We know whenever we arrange dataset in R. We arrange independent and dependent variable column-wise for each ID.
But if I see numerical and category data in single column of independent variable, how can I use that for predicting?
Example, for 10 ID's. Past number of calls: 1,3,4,2,0,no past,5,1,no past, 6(note:no past have different behaviour than 0)
And some other independent variables And one target column.
So from the example, I don't want all levels as factor levels. I want to solve as by looking if 'no past' or as numeric(0-6).
How can I do so, I tried to make different column for 'no past'. But what would I place in 'past number of calls'.