The Grub Street Diet debuted ten years ago, and to celebrate, we’ve asked some favorite subjects to once again chronicle everything they eat and drink.
col_number() [n], finds the first number in the field. A number is defined as a sequence of -, “0-9”, decimal_mark and grouping_mark. This is useful for currencies and percentages. To recognise these columns, readr inspects the first 1000 rows of your dataset.
Most statistical datasets are data frames made up of rows and columns. The columns are almost always labeled and the rows are sometimes labeled. The following code provides some data about an imaginary experiment in a format commonly seen in the wild.
It’s the spring of 2000 and another warm sunny day in Newport Beach. From 600 feet high on the hill I look 30 miles over the Pacific at Wrigley’s 26-mile-long Catalina Island, stretched across the horizon like a huge ship.
Morningstar tells us that efforts at taming volatility in a multi-asset class framework generally turns up mixed results among publicly traded funds.
The process of web scraping is one that many traders will be aware of. Using sophisticated software to pull important data from the web to inform market decisions and investment has helped traders improve their margins over the last few years.
R Markdown is a great tool to make research results reproducible. However, in scientific research papers or reports, tables and figures usually need to be numbered and referenced. Unfortunately, R Markdown has no “native” method to number and reference table and figure captions.