Hi R users,

I have a list:
> x
$A
[1] "a"  "b"  "c"
$B
[1] "b"  "c"
$C
[1] "c"

I want to convert it to a lowercase-to-uppercase list like this:
> y
$a
[1] "A"
$b
[1] "A"  "B"
$c
[1] "A"  "B"  "C"

In a word, I want to reverse the list names and the elements under
each list name. Is there any quick way to do that? Thanks
-- 
Best,
Zhenjiang

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to