How do I extract just the number from a named number (without the name)?

后端 未结 3 1644
北海茫月
北海茫月 2020-11-29 23:08

I am looking for just the value of the B1(newx) linear model coefficient, not the name. I just want the 0.5 value. I do not want the name \"newx\".

newx <         


        
3条回答
  •  猫巷女王i
    2020-11-29 23:23

    If the question is about removing names, another way is here

    my_vec <- # some quantile function(returns named vector)
    names(my_vec) <- NULL
    my_vec
    ## [1] 1 2 3
    

提交回复
热议问题