ld1 <- melt(data7,id="PanelID") Error in veccast.havenlabelled.havenlabelled(): ! Can't…
Jump to turn (10)
- 1ld1 > to > due to loss of precision. • Locations: 2, 5, 8, 12, 30, 31, 33, 36, 4
- 2r语言报错> ld1 > to > due to loss of precision. • Locations: 2, 5, 8, 12, 30, 31, 33
- 3r语言报错 Backtrace: ▆ ├─reshape::melt(data7, id = "PanelID") └─reshape::melt.data.f
- 4如此,怎样修改代码,可以将数据转化为长格式数据
- 5报错 + gather(key, value, -PanelID) Warning message: attributes are not identical
- 6相应的具体代码是?
- 7报错Error: unexpected input in: "numcolsprops % bindrows(.id = “"
- 8报错Error in vctrs::dataframe(): ! Can't recycle label (size 3) to match labels (s
- 9报错> rlang::lasttrace() Error in vctrs::dataframe(): ! Can't recycle label (size
- 10以上操作的具体代码
- User
ld1 <- melt(data7,id="PanelID") Error in
vec_cast.haven_labelled.haven_labelled(): ! Can't convert fromvalue<labelled> to <labelled> due to loss of precision. • Locations: 2, 5, 8, 12, 30, 31, 33, 36, 45, 50, 61, 62, 65, 70,... Runrlang::last_trace()to see where the error occurred. - Assistant
The error message suggests that there is an issue with the conversion of labeled numerical data in the
data7dataframe. Specifically, there seems to be a loss of precision when attempting to convert the data to the same labeled format.To get more detailed information about where exactly the error occurred, you can run the
rlang::last_trace()function.Here's an example of how to use it:
Rrlang::last_trace()