0

Example: I have a dataframe like this:

pokemon1<-c('abra', 'kadabra', 'alakazam')
evolution<-c('1st', '2nd', '3rd')
pokemon<-as.data.frame(pokemon1, evolution )

It looks very nice but I'd need to capitalize the names of the pokemon. How do I do that?

I tried: pokemon<-toupper(pokemon), but this also capitalized the structural part of the code, turning the table into a line of text that says: "[1] "C("ABRA", "KADABRA", "ALAKAZAM")""

VaiskiV
  • 13
  • 1
  • 4

0 Answers0