Skip to content

Commit cf83a3c

Browse files
committed
typo
1 parent 289db60 commit cf83a3c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

docs/units/_unit05/unit05-05_best_scripting.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,17 @@ At the moment there don't seem to be any real advantages to using functions inst
1010
However, we also notice that we still have to do a lot of preprocessing and already the control files are starting to get cluttered.
1111
Therefore it makes sense to separate and generalize some repetitive functionalities. For example, the preprocessing of the lidar data up to the correct setup of the catalog.
1212

13+
Keep in mind we should go one step further and [follow Hadley Wickham's explanation](https://r4ds.had.co.nz/functions.html#when-should-you-write-a-function) when you should write a function?
14+
1315
## Splitting up the control file
14-
First we split up the control files to reduce clarify structure and reduce the cycling of setting up the environment preprocessing data and so on.
15-
It is a good practice to separate at least data preprocessing and data analysis. Furthermore all code that runs more than once should be a function.
16+
However we start simply with splitting up the control files to clarify the structure and reduce the redundant repetitions.
17+
18+
It is a good practice to separate at least setup of a projet, data pre-processing, data analysis and the presentation of the results.
19+
{: .notice--success}
1620

17-
This seperation means that we need a kind of a master control script or usecase.
21+
This separation means that we need a kind of a master control script that rules the workflow and provides general settings.
1822

19-
We start bottom up. First we transform the clipping nto a function.
23+
We start bottom up. First we transform the clipping into a function.
2024

2125

2226
### Seperating the clipping of an arbitrary Area of Interest from LAS data

0 commit comments

Comments
 (0)