Get data frame into right format from web-scrapping work [closed]

帅比萌擦擦* 提交于 2019-12-02 14:23:45

You could try using parse_guess on soundings_48615 and it would convert the columns in preferable format

library(tidyverse)
library(readr)

new_df <- map(soundings_48615, . %>% mutate_all(parse_guess))


str(new_df)
#List of 4
# $ :Classes ‘tbl_df’, ‘tbl’ and 'data.frame':  1 obs. of  30 variables:
#  ..$ 1000 hPa to 500 hPa thickness              : num 5778
#  ..$ Bulk Richardson Number                     : num 2094
#  ..$ Bulk Richardson Number using CAPV          : num 2472
#  ..$ CAPE using virtual temperature             : num 921
#  ..$ CINS using virtual temperature             : num -9.03
#  ..$ Convective Available Potential Energy      : num 780
#  ..$ Convective Inhibition                      : num -14.2
#  ..$ Cross totals index                         : num 21.7
#  ..$ Equilibrum Level                           : num 136
#....
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!