-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cf16688
commit 02b88e1
Showing
21 changed files
with
179 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ extra/* | |
^_pkgdown\.yml$ | ||
^docs$ | ||
^pkgdown$ | ||
^CRAN-SUBMISSION$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Version: 1.0.0 | ||
Date: 2024-07-14 16:18:21 UTC | ||
SHA: cf16688021606b21a9f4ec274e2dd4ebd51210dc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
YEAR: 2020 | ||
YEAR: 2024 | ||
COPYRIGHT HOLDER: Pablo Paccioretti |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
library(sf) | ||
data(wheat, package = "paar") | ||
|
||
##Convert to an sf object | ||
wheat <- sf::st_as_sf(wheat, | ||
coords = c("x", "y"), | ||
crs = 32720) | ||
clusters <- paar::kmspc( | ||
wheat, | ||
variables = c('CE30', 'CE90', 'Elev', 'Pe', 'Tg'), | ||
number_cluster = 3:4 | ||
) | ||
data_clusters <- cbind(wheat, clusters$cluster) | ||
compare_zone(data_clusters, | ||
"Elev", | ||
"Cluster_3") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
library(sf) | ||
data(wheat, package = 'paar') | ||
|
||
# Transform the data.frame into a sf object | ||
wheat_sf <- st_as_sf(wheat, | ||
coords = c('x', 'y'), | ||
crs = 32720) | ||
|
||
# Run the fuzzy_k_means function | ||
fuzzy_k_means_results <- fuzzy_k_means(wheat_sf, | ||
variables = 'Tg', | ||
number_cluster = 2:4) | ||
|
||
# Print the summaryResults | ||
fuzzy_k_means_results$summaryResults | ||
|
||
# Print the indices | ||
fuzzy_k_means_results$indices | ||
|
||
# Print the cluster | ||
head(fuzzy_k_means_results$cluster, 5) | ||
|
||
# Combine the results in a single object | ||
wheat_clustered <- cbind(wheat_sf, fuzzy_k_means_results$cluster) | ||
|
||
# Plot the results | ||
plot(wheat_clustered[, "Cluster_2"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
if (requireNamespace("SpatialPack", quietly = TRUE)) { | ||
library(sf) | ||
data(wheat, package = 'paar') | ||
|
||
# Transform the data.frame into a sf object | ||
wheat_sf <- st_as_sf(wheat, | ||
coords = c('x', 'y'), | ||
crs = 32720) | ||
|
||
# Run spatial t test | ||
t_test_results <- | ||
spatial_t_test( | ||
wheat_sf, | ||
variables = c('CE30', 'CE90')) | ||
|
||
# Print the t_test_results | ||
t_test_results | ||
|
||
|
||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.