Unable to change name value in a vector

后端 未结 0 1262
猫巷女王i
猫巷女王i 2021-01-17 00:56

1.named_vector=c(a=1,b=2,c=3,d=4,e=5,f=6,g=7)

2.names(named_vector)[names(named_vector)==\'c\'] <- \'k\'

3.names(named_vector[names(named_vector)])==\'c\'&l

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