我们可以预测R中的json数据吗?

时间:2016-10-10 12:10:18

标签: json r prediction

我正在使用R语言并且厌倦了使用XGBoost模型预测json数据。我正在使用包含8个变量temperature dataset with eight variables的温度数据集,但R只能使用4个变量R takes four variables。我想通过采取温度和湿度来建立模型,但它不会采取这些变量。 有谁可以帮助我?

1 个答案:

答案 0 :(得分:0)

为了访问json数据中的子元素,我们需要使用“$”。 例如,对于上述数据,我们必须使用“data $ doc”来获取八个变量。 列车< -data $ DOC click here it contains the eight variables in train