Skip to content

Commit 2bade07

Browse files
New datasets : pumpkins
1 parent a8d0ee2 commit 2bade07

File tree

5 files changed

+73
-0
lines changed

5 files changed

+73
-0
lines changed

R/data.R

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,27 @@
1616
#' }
1717
#' @source {Cinar, I. and Koklu, M. (2019). Classification of Rice Varieties Using Artificial Intelligence Methods. International Journal of Intelligent Systems and Applications in Engineering, vol.7, no.3 (Sep. 2019), pp.188-194. doi:10.18201/ijisae.2019355381}
1818
"rice"
19+
20+
#' Pumpkin seeds Dataset
21+
#'
22+
#' A total of 2500 pumpkin seed's images were taken for the two species (Çerçevelik and Ürgüp Sivrisi),
23+
#' processed and feature inferences were made. 12 morphological features were obtained for each pumpkin seeds.
24+
#'
25+
#' @format A data frame with 13 variables and 2500 observations:
26+
#' \describe{
27+
#' \item{\code{area}}{The number of pixels within the borders of a pumpkin seed.}
28+
#' \item{\code{perimeter}}{The circumference in pixels of a pumpkin seed.}
29+
#' \item{\code{major_axis_length}}{The maximal axis distance of a pumpkin seed.}
30+
#' \item{\code{minor_axis_length}}{The small axis distance of a pumpkin seed.}
31+
#' \item{\code{convex_area}}{The ratio of a pumpkin seed area to the bounding box pixels.}
32+
#' \item{\code{equiv_diameter}}{The area of the pumpkin seed by four and dividing by the number pi, and taking the square root.}
33+
#' \item{\code{eccentricity}}{The eccentricity of a pumpkin seed.}
34+
#' \item{\code{solidity}}{The convex condition of the pumpkin seeds.}
35+
#' \item{\code{extent}}{The ratio of a pumpkin seed area to the bounding box pixels.}
36+
#' \item{\code{roundness}}{The ovality of pumpkin seeds without considering its distortion of the edges.}
37+
#' \item{\code{aspect_ratio}}{The aspect ratio of the pumpkin seeds.}
38+
#' \item{\code{compactness}}{The area of the pumpkin seed relative to the area of the circle with the same circumference.}
39+
#' \item{\code{class}}{A **factor** with two levels: `"Cercevelik"`, and `"Urgup Sivrisi"`.}
40+
#' }
41+
#' @source {KOKLU, M., SARIGIL, S. and OZBEK, O. (2021). The use of machine learning methods in classification of pumpkin seeds (Cucurbita pepo L.). Genetic Resources and Crop Evolution, 68(7), 2713-2726. doi:10.1007/s10722-021-01226-0}
42+
"pumpkins"

data-raw/pumpkin_seeds.R

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Pumpkins seeds Data Set
2+
pumpkins <- data.io::read(file = "data-raw/pumpkin_seeds.rds")
3+
## rename variable
4+
vars <- tolower(names(pumpkins))
5+
vars[vars == "aspect_ration"] <- "aspect_ratio"
6+
names(pumpkins) <- vars
7+
8+
## change factor levels
9+
pumpkins$class[pumpkins$class == "Çerçevelik"] <- "Cercevelik"
10+
pumpkins$class[pumpkins$class == "Ürgüp Sivrisi"] <- "Urgup Sivrisi"
11+
pumpkins$class <- as.factor(pumpkins$class)
12+
13+
# write data
14+
usethis::use_data(pumpkins, overwrite = TRUE)

data-raw/pumpkin_seeds.rds

68.1 KB
Binary file not shown.

data/pumpkins.rda

83.8 KB
Binary file not shown.

man/pumpkins.Rd

Lines changed: 35 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)