Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Dadhija Raj

Dadhija Raj

Community Learner
Share
40Questions
40Answers
40.0KViews on questions

Explain gather() and spread() in R along with an example.

Gather() function is used to collapse multiple columns into key-pair values. The data frame above is considered wide since the time variable (represented as quarters) is structured such that each quarter represents a variable. Let us create fake data to clean with tidyr functions. comp

Data Science

Answered Nov 8, 2019 · 1.6K Views Read answer →

More members from the Salesforce community

Learners asking and answering questions on the same topics — follow their questions and join in.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.