Skip to content

Commit b0ca28b

Browse files
committed
Remove unneeded information from looping over files
1 parent 820b9a8 commit b0ca28b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

materials/for-loops-R.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,10 @@ list.files()
197197
```
198198

199199
* But we just want the data files so we'll add the optional `pattern` argument to only get the files that start with `"locations-"`
200-
* The `*` is a wild card, so this means "starts with locations- and includes anything afterwards"
201200

202201

203202
```r
204-
data_files = list.files(pattern = "locations-*",
205-
full.names = TRUE)
203+
data_files = list.files(pattern = "locations-")
206204
```
207205

208206
* Once we have this list we can loop over it count the number of observations in each file

0 commit comments

Comments
 (0)