Column types

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.

Tidy data

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.

R Markdown: How to number and reference tables

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.