Different Results between windows in RStudio

This is my code:

topfifty %>% mutate(PriceforTen=Price*10)
View(topfifty)

I simply want to add a column to my results that multiplies the price by 10. I get the correct results in the console:

1 The 5 Love Languages: The Secret to Love That… 11 Gary … 28 2010 Non-… 280
2 Publication Manual of the American Psychologi… 10 Ameri… 46 2009 Non-… 460
3 StrengthsFinder 2.0 9 Gallup 17 2009 Non-… 170
4 Oh, the Places You'll Go! 8 Dr. S… 8 2012 Fict… 80
5 The Very Hungry Caterpillar 8 Eric … 7 2013 Fict… 70
6 The 7 Habits of Highly Effective People: Powe… 7 Steph… 24 2009 Non-… 240
7 The Four Agreements: A Practical Guide to Per… 7 Don M… 6 2013 Non-… 60
8 Giraffes Can't Dance 6 Giles… 6 2015 Fict… 60
9 Jesus Calling: Enjoying Peace in His Presence… 6 Sarah… 8 2011 Non-… 80
10 First 100 Words 5 Roger… 4 2014 Non-… 40

but not in the top window:

1 The 5 Love Languages: The Secret to Love That Lasts 11 Gary Chapman 28 2010 Non-fiction
2 Publication Manual of the American Psychological Association, 6th Edition 10 American Psychological Association 46 2009 Non-fiction
3 StrengthsFinder 2.0 9 Gallup 17 2009 Non-fiction
4 Oh, the Places You'll Go! 8 Dr. Seuss 8 2012 Fiction
5 The Very Hungry Caterpillar 8 Eric Carle 7 2013 Fiction
6 The 7 Habits of Highly Effective People: Powerful Lessons in Personal Change 7 Stephen R. Covey 24 2009 Non-fiction
7 The Four Agreements: A Practical Guide to Personal Freedom (A Toltec Wisdom Book) 7 Don Miguel Ruiz 6 2013 Non-fiction
8 Giraffes Can't Dance 6 Giles Andreae 6 2015 Fiction
9 Jesus Calling: Enjoying Peace in His Presence (with Scripture References) 6 Sarah Young 8 2011 Non-fiction
10 First 100 Words 5 Roger Priddy 4 2014 Non-fiction
11 How to Win Friends & Influence People 5 Dale Carnegie 11 2014 Non-fiction

Why the difference? Thanks!

try

topfifty <- topfifty %>% mutate(PriceforTen=Price*10)

Thank you so much! This is the last piece of code I needed to finish my project!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.