Skip to content

Commit 4e70a19

Browse files
committed
add bcs70 and ncds sweep_folders.md
1 parent 63776e0 commit 4e70a19

File tree

7 files changed

+37
-4
lines changed

7 files changed

+37
-4
lines changed

docs/bcs70-sweep_folders.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
layout: default
3+
title: "Creating a Simple Folder Structure"
4+
nav_order: 1
5+
parent: BCS70
6+
---
7+
8+
This page introduces code for taking [BCS70 UKDS End User Licence](https://doi.org/10.5255/UKDA-Series-200001) zipped Stata (`.dta`) files, unzipping them and placing into per-sweep folders. The code is available on GitHub: [https://github.com/CLS-Data/make-directories-bcs70](https://github.com/CLS-Data/make-directories-bcs70).
9+
10+
To use the code, first download or clone the GitHub directory. To download the directory, on the GitHub website, click `Code -> Download ZIP` (see screenshot below) then unzip the downloaded file and place in a suitable location on your computer. To clone the directory, open your computer's command line or terminal, navigate to an appropriate location (`cd ...`) and type `git clone https://github.com/CLS-Data/make-directories-bcs70`. You may want to rename the folder from `make-directories-bcs70` to `BCS70` or something similar.
11+
12+
![Downloading the GitHub directory](../images/bcs70-sweep_folders_1.png)
13+
14+
When the folder is downloaded, open the `README.md` file and follow the instructions. You will need to download `R` and `RStudio`, as well as the appropriate BCS70 Stata files off the UK Data Service. The `README.md` file lists the asset numbers of the files the code will work for.
15+
16+
Once completed, the folder should look like the below. You will see the code also creates a data dictionary (in `.csv` and `R` [`.Rdata`] formats) which you can use to search for variables.
17+
18+
![Directory after code completed](../images/bcs70-sweep_folders_2.png)

docs/mcs-sweep_folders.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@ layout: default
33
title: "Creating a Simple Folder Structure"
44
nav_order: 1
55
parent: MCS
6-
format: docusaurus-md
76
---
87

9-
# Introduction {#introduction}
10-
118
This page introduces code for taking [MCS UKDS End User Licence](https://doi.org/10.5255/UKDA-Series-2000031) zipped Stata (`.dta`) files, unzipping them and placing into per-sweep folders. The code is available on GitHub: [https://github.com/CLS-Data/make-directories-mcs](https://github.com/CLS-Data/make-directories-mcs).
129

13-
To use the code, first download or clone the GitHub directory. To download the directory, on the GitHub website, click `Code -> Download Zip` (see screenshot below) then unzip the downloaded file and place in a suitable location on your computer. To clone the directory, open your computer's command line or terminal, navigate to an appropriate location (`cd ...`) and type `git clone https://github.com/CLS-Data/make-directories-mcs`. You may want to rename the folder from `make-directories-mcs` to `MCS` or something similar.
10+
To use the code, first download or clone the GitHub directory. To download the directory, on the GitHub website, click `Code -> Download ZIP` (see screenshot below) then unzip the downloaded file and place in a suitable location on your computer. To clone the directory, open your computer's command line or terminal, navigate to an appropriate location (`cd ...`) and type `git clone https://github.com/CLS-Data/make-directories-mcs`. You may want to rename the folder from `make-directories-mcs` to `MCS` or something similar.
1411

1512
![Downloading the GitHub directory](../images/mcs-sweep_folders_1.png)
1613

docs/ncds-sweep_folders.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
layout: default
3+
title: "Creating a Simple Folder Structure"
4+
nav_order: 1
5+
parent: NCDS
6+
---
7+
8+
This page introduces code for taking [NCDS UKDS End User Licence](https://doi.org/10.5255/UKDA-Series-2000032) zipped Stata (`.dta`) files, unzipping them and placing into per-sweep folders. The code is available on GitHub: [https://github.com/CLS-Data/make-directories-ncds](https://github.com/CLS-Data/make-directories-ncds).
9+
10+
To use the code, first download or clone the GitHub directory. To download the directory, on the GitHub website, click `Code -> Download ZIP` (see screenshot below) then unzip the downloaded file and place in a suitable location on your computer. To clone the directory, open your computer's command line or terminal, navigate to an appropriate location (`cd ...`) and type `git clone https://github.com/CLS-Data/make-directories-ncds`. You may want to rename the folder from `make-directories-ncds` to `NCDS` or something similar.
11+
12+
![Downloading the GitHub directory](../images/ncds-sweep_folders_1.png)
13+
14+
When the folder is downloaded, open the `README.md` file and follow the instructions. You will need to download `R` and `RStudio`, as well as the appropriate NCDS Stata files off the UK Data Service. The `README.md` file lists the asset numbers of the files the code will work for.
15+
16+
Once completed, the folder should look like the below. You will see the code also creates a data dictionary (in `.csv` and `R` [`.Rdata`] formats) which you can use to search for variables.
17+
18+
![Directory after code completed](../images/ncds-sweep_folders_2.png)

images/bcs70-sweep_folders_1.png

579 KB
Loading

images/bcs70-sweep_folders_2.png

99.9 KB
Loading

images/ncds-sweep_folders_1.png

566 KB
Loading

images/ncds-sweep_folders_2.png

91.9 KB
Loading

0 commit comments

Comments
 (0)