Can you change the name of an element on an array without trying to set the names of the entire array?

前端 未结 0 1565
旧时难觅i
旧时难觅i 2021-02-05 22:12

I was recently surprised to find that the following didn\'t work:

output<-array(1:10)
names(output[1])<-"Foo"

As far as I can tel

相关标签:
回答
  • 消灭零回复
提交回复
热议问题