【发布时间】:2020-01-15 19:06:05
【问题描述】:
下面的代码是关于超过10个房间的房屋过采样,请问prob = ifelse(housing.df$ROOMS>10, 0.9, 0.01)是什么意思?非常感谢。
s <- sample(row.names(housing.df), 5, pro = ifelse(housing.df$ROOMS>10, 0.9, 0.01))
housing.df[s.]
【问题讨论】:
-
你看帮助页了吗
?ifelse
标签: r sample oversampling