{ "cells": [ { "cell_type": "markdown", "id": "43c8ded4-4871-47f6-9a36-09ab3f87cb27", "metadata": {}, "source": [ "# Homework 1 notes" ] }, { "cell_type": "markdown", "id": "154c4dc7-afe4-4835-9363-704a40741d6d", "metadata": {}, "source": [ "We download the file directly from the website using a custom function. In the homework, you\n", "were asked to create a directory (folder) for the homework, with subdirectories (subfolders)\n", "for `data` and `analysis`.\n", "\n", "In the code below, we are reading in the file directly, and the temporary file created here\n", "will be deleted by the operating system. When reading in the data file from a directory (folder),\n", "**you must use relative paths** and never use absolute paths." ] }, { "cell_type": "code", "execution_count": 1, "id": "5fdf944a-c818-4636-8bce-c90a5d978804", "metadata": { "scrolled": true }, "outputs": [ { "data": { "text/html": [ "
ID | sex | Age | BMI | SBP | DBP | FBG | TC | Cr | GFR | UA | Times | hypertension | hyperglycemia | dyslipidemia | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
<int> | <int> | <int> | <dbl> | <int> | <int> | <dbl> | <dbl> | <int> | <dbl> | <int> | <int> | <int> | <int> | <int> | |
1 | 1 | 2 | 79 | 24.35 | 132 | 83 | 6.20 | 4.65 | 54 | 116.182 | 284 | 1 | 1 | 1 | 1 |
2 | 1 | 2 | 81 | 25.24 | 136 | 85 | 6.09 | 4.97 | 95 | 57.605 | 208 | 2 | 1 | 1 | 1 |
3 | 1 | 2 | 83 | 23.43 | 120 | 86 | 6.16 | 4.92 | 66 | 89.899 | 230 | 3 | 1 | 1 | 1 |
4 | 1 | 2 | 85 | 24.70 | 144 | 80 | 6.24 | 5.15 | 50 | 126.093 | 199 | 4 | 2 | 1 | 1 |
5 | 2 | 2 | 63 | 27.27 | 120 | 73 | 5.37 | 4.08 | 63 | 100.027 | 247 | 1 | 1 | 1 | 1 |
6 | 2 | 2 | 65 | 25.92 | 120 | 74 | 5.25 | 4.74 | 74 | 81.554 | 326 | 2 | 1 | 1 | 1 |