У меня есть модель с «вводом данных вручную» на Azure с одним модулем R, вот столбцы:
Region_ID, Log_Type, CITY_ID, Ad_Slot_Width, Ad_Slot_Floor_Price, Creative_ID, Paying_Price
217,2,3, 335, Na, 5, 255
Вот переменные в модуле R:
test2$Region_ID<- as.numeric(test2$Region_ID)
test2$City_ID<- as.numeric(test2$City_ID)
test2$Ad_Slot_Width<- as.numeric(test2$Ad_Slot_Width)
test2$Ad_Slot_Floor_Price<- as.numeric(as.factor(test2$Ad_Slot_Floor_Price))
test2$Paying_Price<- as.numeric(test2$Paying_Price)
test2$Creative_ID<- as.numeric(test2$Creative_ID)
Here is error when executing it:
Execute R Script Piped (RPackage) : The following error occurred during
evaluation of R script: R_tryEval: return error: Error in `
$<-.data.frame`(`*tmp*`, "City_ID", value = numeric(0)) : replacement has 0
rows, data has 1
Где не так?Как получить те же строки замены и данные?Спасибо, Энн