Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
87 views
in Technique[技术] by (71.8m points)

r - How to change/format values from data column?

enter image description here

How do I iterate through the Sports column to set "boxing" to "Boxing"? To lower would also work.

I've tried

athletes1990_2020
for(sport in athletes1990_2020$Sport)
  if(sport == "boxing")
  sport <- "Boxing"


athletes1990_2020
question from:https://stackoverflow.com/questions/66051563/how-to-change-format-values-from-data-column

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...