1
A
回答
4
x2 <- na.omit(x2)
可能適合你。
0
只需將此
x2 = x2[!is.na(x2)];
1
功能subset
可能是使用複雜的指標是有用的。
subset(x2, !is.nan(x2[[1]]))
相關問題
- 1. Cascade remove not working.cascade = {「remove」}
- 2. CSS顯示性能增益:無或$ .remove()?
- 3. Ajax中的jQuery remove()
- 4. Arraylist remove()
- 5. 合併或R中
- 6. 總和或R中
- 7. [Layout] .Children.Clear()或Remove()在Xamarin中給出錯誤。表格
- 8. 如何在NSIS腳本中使用REMOVE或REPAIR功能?
- 9. 一個.remove()或在IE中選擇行爲
- 10. Preg_replace或JavaScript .remove刪除wordpress網站中的元素?
- 11. SCHEME中的Remove-1st函數
- 12. jquery toggle append remove
- 13. php count wordand remove
- 14. 問題與.remove()
- 15. Kinect + OpenNI:howto remove user
- 16. htmlpurifier remove inline css
- 17. Remove the trailing]>
- 18. remove webstageview flex mobile
- 19. remove元素
- 20. CCSprite runAction和Remove
- 21. PHP remove從URL
- 22. WIFI P2P REMOVE GROUP
- 23. jQuery remove()回調?
- 24. jQuery remove()函數
- 25. Empty/Remove Puppet Clientbucket
- 26. Remove-SPServiceApplication掛起
- 27. jQuery empty()vs remove()
- 28. 無法ResTable :: remove()
- 29. REMOVE LEAF命令
- 30. Cant Remove Event Listener
'is.nan'特定於'NaN'。目前的答案也會處理其他缺失值。 – Roland
也許你可以解釋爲什麼你沒有找到任何[**以前的答案這個問題**](http://stackoverflow.com/search?q= [r] +刪除+ NaN)有幫助嗎? – Henrik