当前位置: 首页>>代码示例 >>用法及示例精选 >>正文


R corrr dice 返回仅包含选定字段的关联表


返回仅包含选定字段的关联表

用法

dice(x, ...)

参数

x

相关表,类cor_df

...

相关表中的变量列表

例子


dice(correlate(mtcars), mpg, wt, am)
#> Correlation computed with
#> • Method: 'pearson'
#> • Missing treated using: 'pairwise.complete.obs'
#> # A tibble: 3 × 4
#>   term     mpg     wt     am
#>   <chr>  <dbl>  <dbl>  <dbl>
#> 1 mpg   NA     -0.868  0.600
#> 2 wt    -0.868 NA     -0.692
#> 3 am     0.600 -0.692 NA    
源代码:R/reshape.R

相关用法


注:本文由纯净天空筛选整理自Max Kuhn等大神的英文原创作品 Returns a correlation table with the selected fields only。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。