Displaying 1 result from an estimated 1 matches for "newempl".
Did you mean:
exempl
2001 Mar 01
2
Individual rename of list items
I am confused by the logic of renaming:
# Rename individual list items?
Empl<-list(employee="Anna",spouse="Fred")
names(Empl)<-c("empl","spo")
names(Empl)
#[1] "empl" "spo"
# worked like a charm... but
names(Empl[1])<-"newempl"
# no error message, yet ....
names(Empl)
#[1] "empl" "spo"
# where's my newempl???????
If this line
names(Empl[1])<-"newempl"
was stupid, why is there no error message?
---------------------------------------
Dr. Dieter Menne
Biomed Software
72074 T...