Exercise

Adding cognostics

Let's practice custom cognostics by taking the by_symbol data merged with the stock metadata creating a cognostic for the log market capitalization.

Instructions

100 XP
  • Use mutate() to create a new variable, market_cap_log, which is the base 10 logarithm of market_cap.
  • Use the cog() wrapper function to provide a custom description for the cognostic, "log base 10 market capitalization".