【问题标题】:How to transpose only one row of a dataframe in R如何在 R 中仅转置数据框的一行
【发布时间】:2023-01-16 00:34:31
【问题描述】:

enter image description here

我希望准确度行位于列部分

【问题讨论】:

    标签: r dataframe


    【解决方案1】:

    请尝试

    library(tidyverse)
    
    df$accuracy <- df[X=='accuracy']
    

    【讨论】:

      猜你喜欢
      • 2023-02-10
      • 2014-06-19
      • 2022-11-15
      • 2021-07-09
      • 2021-07-27
      • 1970-01-01
      • 2015-08-31
      • 2015-04-12
      • 2018-02-21
      相关资源
      最近更新 更多