str(coronavirus) 'data.frame': 973836 obs. of 15 variables: $ date : Date, format: "2020-01-22" "2020-01-23" "2020-01-24" ... $ province : chr "Alberta" "Alberta" "Alberta" "Alberta" ... $ country : chr "Canada" "Canada" "Canada" "Canada" ... $ lat : num 53.9 53.9 53.9 53.9 53.9 ... $ long : num -117 -117 -117 -117 -117 ... $ type : chr "confirmed" "confirmed" "confirmed" "confirmed" ... $ cases : num 0 0 0 0 0 0 0 0 0 0 ... $ uid : num 12401 12401 12401 12401 12401 ... $ iso2 : chr "CA" "CA" "CA" "CA" ... $ iso3 : chr "CAN" "CAN" "CAN" "CAN" ... $ code3 : num 124 124 124 124 124 124 124 124 124 124 ... $ combined_key : chr "Alberta, Canada" "Alberta, Canada" "Alberta, Canada" "Alberta, Canada" ... $ population : num 4413146 4413146 4413146 4413146 4413146 ... $ continent_name: chr "North America" "North America" "North America" "North America" ... $ continent_code: chr "NA" "NA" "NA" "NA" ...coronavirus数据集有几个变量,多少条记录,利用相关函数描述其结构
时间: 2023-07-12 11:55:23 浏览: 93
coronavirus数据集有15个变量,973836条记录。通过使用R语言中的str()函数可以描述其结构,输出结果如下:
'data.frame': 973836 obs. of 15 variables:
$ date : Date, format: "2020-01-22" "2020-01-23" "2020-01-24" ...
$ province : chr "Alberta" "Alberta" "Alberta" "Alberta" ...
$ country : chr "Canada" "Canada" "Canada" "Canada" ...
$ lat : num 53.9 53.9 53.9 53.9 53.9 ...
$ long : num -117 -117 -117 -117 -117 ...
$ type : chr "confirmed" "confirmed" "confirmed" "confirmed" ...
$ cases : num 0 0 0 0 0 0 0 0 0 0 ...
$ uid : num 12401 12401 12401 12401 12401 ...
$ iso2 : chr "CA" "CA" "CA" "CA" ...
$ iso3 : chr "CAN" "CAN" "CAN" "CAN" ...
$ code3 : num 124 124 124 124 124 124 124 124 124 124 ...
$ combined_key : chr "Alberta, Canada" "Alberta, Canada" "Alberta, Canada" "Alberta, Canada" ...
$ population : num 4413146 4413146 4413146 4413146 4413146 ...
$ continent_name: chr "North America" "North America" "North America" "North America" ...
$ continent_code: chr "NA" "NA" "NA" "NA" ...
阅读全文