I want to make a single dataframe out of a list dataframes that contains a single row. I tried to binding them together to remove the NaN values but you can only bind if there is no NaN values!
What I got:
[[1]]
[1] NaN 9.840158e+17
[[2]]
[1] NaN 9.838244e+17
[[3]]
[1] 6.842105e-01 9.837743e+17
[[4]]
[1] 2.527174e+00 9.837643e+17
[[5]]
[1] 1.168269e+00 9.836988e+17
[[6]]
[1] NaN 9.83663e+17
What I want:
[1]
impact id
6.842105e-01 9.837743e+17
2.527174e+00 9.837643e+17
1.168269e+00 9.836988e+17
What I tried:
bind_rows(data, .id = "id")
Error: Argument 1 must have names
for reproduction of the problem:
list(c(NaN, 984015782521835008), c(NaN, 983824424532144000),
c(0.684210526315789, 983774270886236032), c(2.52717391304348,
983764328443796992), c(1.16826923076923, 983698762760704000
), c(NaN, 983662953894435968))
Any tips on how to solve this?