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'<-'k'`

Unable to change name of a member 'c' in named\_vector using line 3, but working fine with line 2
getting the error message as --------------------->

Error in names(named\_vector[names(named\_vector)]) == "c" <- "k" :
could not find function "==<-"