Skip to content

Commit 6c90618

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f4e9ad4 commit 6c90618

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/soil_compression_calculations.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
# ======================================================
42
# load packages
53

src/soil_compression_geospatial_inputs.R

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,12 @@ for (i in 1:n_cells) {
8686
ex <- extent(cell)
8787

8888
# Take a random sample of n points from the 50 km cell
89-
rs <- SpatialPoints(data.frame(
90-
x = sample(ex[1]:ex[2], n_samp, replace = T),
91-
y = sample(ex[3]:ex[4], n_samp, replace = T)
92-
),
93-
proj4string = crs(cell)
89+
rs <- SpatialPoints(
90+
data.frame(
91+
x = sample(ex[1]:ex[2], n_samp, replace = T),
92+
y = sample(ex[3]:ex[4], n_samp, replace = T)
93+
),
94+
proj4string = crs(cell)
9495
)
9596

9697
# extract the cultivated layer to get fraction of cell cultivated

0 commit comments

Comments
 (0)