{
  "_id": "6aba905999f7aa8c6aa4172d",
  "Package": "VeraCrop",
  "Type": "Package",
  "Title": "Yield Gap Analysis Using Comparative Performance Analysis",
  "Version": "0.1.0",
  "Authors@R": "c(\nperson(\"Abolfazl\", \"Derakhshan\", email = \"derakhshanabolfazl01@gmail.com\", role = c(\"aut\", \"cph\")),\nperson(\"Elham\", \"Elahifard\", email = \"e.elahifard@asnrukh.ac.ir\", role = c(\"aut\", \"cre\")),\nperson(\"Aghajan\", \"Bahadori\", role = c(\"ctb\")),\nperson(\"Shaban\", \"Zarei\", role = c(\"ctb\")),\nperson(\"Hossein\", \"Norouzi\", role = c(\"ctb\")))",
  "Description": "Implements automated variable-type detection,\npreprocessing, encoding, scaling, model diagnostics, variable\nselection, and yield gap computation for agricultural\ncomparative performance analysis (CPA). The comparative\nperformance analysis approach is described in de Bie (2004)\n<doi:10.1016/j.scienta.2003.11.017>. For an overview of yield\ngap assessment methodologies, see Kamkar et al. (2025)\n<doi:10.1016/j.agsy.2025.104392>.",
  "License": "MIT + file LICENSE",
  "Language": "en-US",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Config/testthat/edition": "3",
  "VignetteBuilder": "knitr",
  "NeedsCompilation": "no",
  "Author": "Abolfazl Derakhshan [aut, cph], Elham Elahifard [aut, cre],\nAghajan Bahadori [ctb], Shaban Zarei [ctb], Hossein Norouzi\n[ctb]",
  "Maintainer": "Elham Elahifard <e.elahifard@asnrukh.ac.ir>",
  "Packaged": {
    "Date": "2026-09-28 16:01:36 UTC",
    "User": "root"
  },
  "Config/roxygen2/version": "8.1.0",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-09-28 07:50:07 UTC",
  "RemoteUrl": "https://github.com/cran/VeraCrop",
  "RemoteRef": "HEAD",
  "RemoteSha": "e1dcd96a1fc7cf8eae213e2a3664df5e1bb6e6f9",
  "_user": "cran",
  "_type": "src",
  "_file": "VeraCrop_0.1.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/d935ad1bc806271cd7b5bf26754a78964a2c5beb471b44c50506d7a6b8d55d2d",
  "_filesize": 606770,
  "_sha256": "d935ad1bc806271cd7b5bf26754a78964a2c5beb471b44c50506d7a6b8d55d2d",
  "_expires": "2027-01-06T16:05:43.000Z",
  "_created": "2026-09-28T16:01:36.000Z",
  "_published": "2026-09-28T16:05:45.326Z",
  "_jobs": [
    {
      "job": 109015402625,
      "time": 194,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10981911305"
    },
    {
      "job": 109015402458,
      "time": 180,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10981231876"
    },
    {
      "job": 109013489854,
      "time": 270,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10981636071"
    },
    {
      "job": 109015402375,
      "time": 141,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "10981946159"
    },
    {
      "job": 109015402680,
      "time": 109,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10982555782"
    },
    {
      "job": 109015402378,
      "time": 145,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10982006147"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/36447314259",
  "_status": "success",
  "_upstream": "https://github.com/cran/VeraCrop",
  "_commit": {
    "id": "e1dcd96a1fc7cf8eae213e2a3664df5e1bb6e6f9",
    "author": "Elham Elahifard <e.elahifard@asnrukh.ac.ir>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1.0\n",
    "time": 1790581807
  },
  "_maintainer": {
    "name": "Elham Elahifard",
    "email": "e.elahifard@asnrukh.ac.ir"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.0.0",
      "role": "Depends"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "lmtest",
      "role": "Suggests"
    },
    {
      "package": "car",
      "role": "Suggests"
    },
    {
      "package": "e1071",
      "role": "Suggests"
    },
    {
      "package": "bit64",
      "role": "Suggests"
    },
    {
      "package": "patchwork",
      "role": "Suggests"
    },
    {
      "package": "writexl",
      "role": "Suggests"
    },
    {
      "package": "relaimpo",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "spelling",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-40",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.1.0",
      "date": "2026-09-28"
    }
  ],
  "_stars": 0,
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 630,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/VeraCrop"
  },
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/VeraCrop.html",
    "LICENSE"
  ],
  "_realowner": "cran",
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-09-28"
    }
  ],
  "_exports": [
    "add_missing_indicators",
    "adjust_intercept",
    "back_transform_coefficients",
    "back_transform_data",
    "bootstrap_cpa",
    "calculate_minmax_effects",
    "calculate_opt_values",
    "calculate_relative_importance",
    "check_assumptions",
    "check_data_ready",
    "detect_variable_types",
    "encode_variables",
    "filter_variables",
    "group_high_cardinality",
    "handle_missing_values",
    "missing_summary",
    "model_diagnostics",
    "pareto_analysis",
    "plot_all_graphs",
    "plot_contribution_shares",
    "plot_minmax_effects",
    "plot_observed_vs_predicted",
    "plot_relative_importance",
    "plot_yield_gap_distribution",
    "prep_yield_gap",
    "preprocessing_report",
    "remove_constant_vars",
    "remove_highly_correlated",
    "remove_near_zero_variance",
    "remove_non_predictors",
    "save_field_level_excel",
    "save_results_excel",
    "scale_new_data",
    "scale_variables",
    "select_vars_aic",
    "select_vars_ftest",
    "summary_scaling",
    "trim_whitespace",
    "validate_model_with_cv",
    "validate_preprocessing",
    "yield_gap_analysis",
    "yield_gap_components"
  ],
  "_datasets": [
    {
      "name": "sugarcane1",
      "title": "Sugarcane Yield Trial Data",
      "object": "sugarcane1",
      "class": [
        "data.frame"
      ],
      "fields": [
        "field_id",
        "cultivar",
        "crop_type",
        "texture_class",
        "drainage_issue",
        "smut_incidence",
        "other_weeds_presence",
        "harvestable_area",
        "harvest_days_from_September23_2023",
        "harvest_duration",
        "crop_cycle_days",
        "first_topdressing_days_from_February20_2023",
        "second_topdressing_days_from_February20_2023",
        "third_topdressing_days_from_February20_2023",
        "starter_urea_kg_ha",
        "first_topdressing_urea_kg_ha",
        "second_topdressing_urea_kg_ha",
        "third_topdressing_urea_kg_ha",
        "total_urea_kg_ha",
        "leaf_N_at_mid_stem_elongation",
        "leaf_N_at_grand_growth",
        "leaf_N_before_irrigation_cutoff",
        "irrigation_cutoff_days_from_September23_2023",
        "sesamia_bored_internodes_percent",
        "cogongrass_infested_m2",
        "irrigation_interval",
        "max_LAI",
        "MCARI",
        "soil_EC",
        "Yield"
      ],
      "rows": 371,
      "table": true,
      "tojson": true
    },
    {
      "name": "wheat1",
      "title": "Wheat Yield Trial Data (Clean)",
      "object": "wheat1",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Yield",
        "Irrigation",
        "Nitrogen",
        "Phosphorus",
        "Potassium",
        "Soil_pH",
        "Soil_Organic_Matter",
        "Plant_density",
        "Weed_Infestation",
        "Drought",
        "Pest",
        "Cultivar",
        "Sowing_Date"
      ],
      "rows": 200,
      "table": true,
      "tojson": true
    },
    {
      "name": "wheat2",
      "title": "Wheat Yield Trial Data (Small, High-Dimensional, Real-World Messy)",
      "object": "wheat2",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Field_id",
        "Farmers_age",
        "Litracy_Level",
        "Experience_Years",
        "Cultivated_Area",
        "Rotation",
        "Crop_Residue_Mgmt",
        "Pre_Plow_Irrigation",
        "Disk_Passes",
        "Land_Leveled",
        "Seeder_Type",
        "Planting_Day_From_Sep23",
        "Seed_Rate",
        "Cultivar",
        "TSP_Rate",
        "Good_Drainage",
        "Irrigation_Count",
        "Soil_texture",
        "Weed_species",
        "Spraying_DAP",
        "Herbicide_Type",
        "Urea_as_adjuvant",
        "Nitrogen_topdressing_Number",
        "Topdressing_N",
        "Puccinia_disease",
        "Days_To_Harvest",
        "Selection_Pressure",
        "Herbicide_Resistance_Suspected",
        "Yield"
      ],
      "rows": 40,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "add_missing_indicators",
      "title": "Add Missing Indicators",
      "topics": [
        "add_missing_indicators"
      ]
    },
    {
      "page": "adjust_intercept",
      "title": "Adjust Intercept After Back-Transformation",
      "topics": [
        "adjust_intercept"
      ]
    },
    {
      "page": "back_transform_coefficients",
      "title": "Back-transform Coefficients to Original Scale",
      "topics": [
        "back_transform_coefficients"
      ]
    },
    {
      "page": "back_transform_data",
      "title": "Back-transform Data",
      "topics": [
        "back_transform_data"
      ]
    },
    {
      "page": "bootstrap_cpa",
      "title": "Bootstrap Confidence Intervals for the CPA Yield Gap Decomposition",
      "topics": [
        "bootstrap_cpa"
      ]
    },
    {
      "page": "calculate_minmax_effects",
      "title": "Calculate Min-Max Effects of Variables on Yield",
      "topics": [
        "calculate_minmax_effects"
      ]
    },
    {
      "page": "calculate_opt_values",
      "title": "Calculate Optimal Values for Selected Variables",
      "topics": [
        "calculate_opt_values"
      ]
    },
    {
      "page": "calculate_relative_importance",
      "title": "Calculate Relative Importance of Variables",
      "topics": [
        "calculate_relative_importance"
      ]
    },
    {
      "page": "check_assumptions",
      "title": "Check Linear Regression Assumptions",
      "topics": [
        "check_assumptions"
      ]
    },
    {
      "page": "check_data_ready",
      "title": "Quick Check for Data Readiness",
      "topics": [
        "check_data_ready"
      ]
    },
    {
      "page": "detect_variable_types",
      "title": "Detect variable types",
      "topics": [
        "detect_variable_types"
      ]
    },
    {
      "page": "encode_variables",
      "title": "Encode variables for statistical models",
      "topics": [
        "encode_variables"
      ]
    },
    {
      "page": "filter_variables",
      "title": "Apply All Filtering Steps",
      "topics": [
        "filter_variables"
      ]
    },
    {
      "page": "group_high_cardinality",
      "title": "Group levels of high-cardinality categorical variables",
      "topics": [
        "group_high_cardinality"
      ]
    },
    {
      "page": "handle_missing_values",
      "title": "Handle Missing Values",
      "topics": [
        "handle_missing_values"
      ]
    },
    {
      "page": "missing_summary",
      "title": "Quick Missing Value Summary",
      "topics": [
        "missing_summary"
      ]
    },
    {
      "page": "model_diagnostics",
      "title": "Quick Model Summary with Assumption Checks",
      "topics": [
        "model_diagnostics"
      ]
    },
    {
      "page": "pareto_analysis",
      "title": "Pareto Analysis of Yield Gap Contributions",
      "topics": [
        "pareto_analysis"
      ]
    },
    {
      "page": "plot_all_graphs",
      "title": "Generate All Yield Gap Plots",
      "topics": [
        "plot_all_graphs"
      ]
    },
    {
      "page": "plot_contribution_shares",
      "title": "Plot Variable Contributions to Yield Gap",
      "topics": [
        "plot_contribution_shares"
      ]
    },
    {
      "page": "plot_minmax_effects",
      "title": "Plot Min-Max Effects of Variables on Yield",
      "topics": [
        "plot_minmax_effects"
      ]
    },
    {
      "page": "plot_observed_vs_predicted",
      "title": "Plot Observed vs. Predicted Yield",
      "topics": [
        "plot_observed_vs_predicted"
      ]
    },
    {
      "page": "plot_relative_importance",
      "title": "Plot Relative Importance of Variables",
      "topics": [
        "plot_relative_importance"
      ]
    },
    {
      "page": "plot_yield_gap_distribution",
      "title": "Plot Distribution of Yield Gap Across Fields",
      "topics": [
        "plot_yield_gap_distribution"
      ]
    },
    {
      "page": "prep_yield_gap",
      "title": "Main Preprocessing Pipeline for Yield Gap Analysis",
      "topics": [
        "prep_yield_gap"
      ]
    },
    {
      "page": "preprocessing_report",
      "title": "Create a Preprocessing Report",
      "topics": [
        "preprocessing_report"
      ]
    },
    {
      "page": "remove_constant_vars",
      "title": "Remove Constant Variables",
      "topics": [
        "remove_constant_vars"
      ]
    },
    {
      "page": "remove_highly_correlated",
      "title": "Remove Highly Correlated Variables",
      "topics": [
        "remove_highly_correlated"
      ]
    },
    {
      "page": "remove_near_zero_variance",
      "title": "Remove Near Zero Variance Variables",
      "topics": [
        "remove_near_zero_variance"
      ]
    },
    {
      "page": "remove_non_predictors",
      "title": "Remove Non-Predictor Variables",
      "topics": [
        "remove_non_predictors"
      ]
    },
    {
      "page": "save_field_level_excel",
      "title": "Save Field-Level Yield Gap Analysis to Excel",
      "topics": [
        "save_field_level_excel"
      ]
    },
    {
      "page": "save_results_excel",
      "title": "Save Yield Gap Analysis Results to Excel",
      "topics": [
        "save_results_excel"
      ]
    },
    {
      "page": "scale_new_data",
      "title": "Scale New Data Using Existing Parameters",
      "topics": [
        "scale_new_data"
      ]
    },
    {
      "page": "scale_variables",
      "title": "Scale Continuous Variables",
      "topics": [
        "scale_variables"
      ]
    },
    {
      "page": "select_vars_aic",
      "title": "Variable Selection via AIC-Based Stepwise Regression",
      "topics": [
        "select_vars_aic"
      ]
    },
    {
      "page": "select_vars_ftest",
      "title": "Forward Stepwise Variable Selection Using F-test",
      "topics": [
        "select_vars_ftest"
      ]
    },
    {
      "page": "sugarcane1",
      "title": "Sugarcane Yield Trial Data",
      "topics": [
        "sugarcane1"
      ]
    },
    {
      "page": "summary_scaling",
      "title": "Get Scaling Summary",
      "topics": [
        "summary_scaling"
      ]
    },
    {
      "page": "trim_whitespace",
      "title": "Trim leading/trailing whitespace from character columns",
      "topics": [
        "trim_whitespace"
      ]
    },
    {
      "page": "validate_model_with_cv",
      "title": "k-Fold Cross-Validation for Yield Gap Model",
      "topics": [
        "validate_model_with_cv"
      ]
    },
    {
      "page": "validate_preprocessing",
      "title": "Validate Preprocessing Results",
      "topics": [
        "validate_preprocessing"
      ]
    },
    {
      "page": "wheat1",
      "title": "Wheat Yield Trial Data (Clean)",
      "topics": [
        "wheat1"
      ]
    },
    {
      "page": "wheat2",
      "title": "Wheat Yield Trial Data (Small, High-Dimensional, Real-World Messy)",
      "topics": [
        "wheat2"
      ]
    },
    {
      "page": "yield_gap_analysis",
      "title": "Complete Yield Gap Analysis Using CPA Method",
      "topics": [
        "yield_gap_analysis"
      ]
    },
    {
      "page": "yield_gap_components",
      "title": "Calculate Yield Gap Components from CPA Table",
      "topics": [
        "yield_gap_components"
      ]
    }
  ],
  "_readme": "https://github.com/cran/VeraCrop/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "getting-started.Rmd",
      "filename": "getting-started.html",
      "title": "Getting Started with VeraCrop",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "1. Load the example data",
        "2. Preprocess the data",
        "3. Fit a model and check regression assumptions",
        "4. Run the full yield gap analysis",
        "Field-level (per-observation) yield gap",
        "5. Visualize the results",
        "6. Export results",
        "A messier, real-world dataset",
        "Next steps"
      ],
      "created": "2026-09-28 07:50:07",
      "modified": "2026-09-28 07:50:07",
      "commits": 1
    }
  ],
  "_score": 2.6989700043360187,
  "_indexed": true,
  "_nocasepkg": "veracrop",
  "_universes": [
    "cran"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-09-28T16:04:27.000Z",
      "distro": "resolute",
      "commit": "e1dcd96a1fc7cf8eae213e2a3664df5e1bb6e6f9",
      "fileid": "https://r2.ropensci.org/7f25cd2524cd752c0c6ad4932a0ac5e9de313a169e9676b47b11f403272768a2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/36447314259"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-09-28T16:04:16.000Z",
      "distro": "resolute",
      "commit": "e1dcd96a1fc7cf8eae213e2a3664df5e1bb6e6f9",
      "fileid": "https://r2.ropensci.org/a8104c5a9f8b45387b669f610578de7e9ebb8cdaaf190dd974ad3e6c73fab8b1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/36447314259"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-09-28T16:04:19.000Z",
      "commit": "e1dcd96a1fc7cf8eae213e2a3664df5e1bb6e6f9",
      "fileid": "https://r2.ropensci.org/8809d15ba8b2dba4bd62112102cf9c03c92286c753a7c2a7b2a8941ad56e6065",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/36447314259"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-09-28T16:02:55.000Z",
      "commit": "e1dcd96a1fc7cf8eae213e2a3664df5e1bb6e6f9",
      "fileid": "https://r2.ropensci.org/980ca6885edb1a928a270c25cdde85c25ca4af8db6c87aedd5ad5ffcea67ae9f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/36447314259"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-09-28T16:03:46.000Z",
      "commit": "e1dcd96a1fc7cf8eae213e2a3664df5e1bb6e6f9",
      "fileid": "https://r2.ropensci.org/995bde4c81b9d361c9e23c0bfddae8dc6884400e8072004fe445b574228edbea",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/36447314259"
    }
  ]
}