Closed asila closed 6 months ago
It should (now) be carobiner::read_metadata
, as in:
m <- carobiner::read_metadata(uri, path, group, major=3, minor=0)
t(m)
# [,1]
#dataset_id "hdl_11529_10548624"
#group "soil_samples"
#uri "hdl:11529/10548624"
#license "CIMMYT license"
#title "Agronomic, soil and weather data from modules and extension areas in hub Chiapas, Mexico 2012-2018."
#authors "Verhulst, Nele; Trevisan, Rodrigo G.; Martin, Nicolas F.; Fonteyne, Simon; Dorado Betancourt, Hugo A.; Jimenez, Daniel; Gardeazabal, Andrea"
#data_published "2021-10-26"
#description "Improvements to local maize production systems need to be developed and validated together with the local farmers in order to generate a lasting impact. Therefore, CIMMYT coordinated, as part of the work in its innovation hub in Chiapas, the installation of side-by-side comparisons of improved practices (innovation modules) as well as field demonstrations of these practices in farmers' fields (extension areas). In all these fields, agronomic data were captured by the farm advisors and captured into the Bitacora Electronica MasAgro (BEM) electronic logbook. This dataset contains a subset of variables from the BEM database for Chiapas in the years 2012-2018. Agronomic data including yield, cultivar, tillage and fertilization were extracted from BEM. Additionally, slope, texture, soil organic matter concentration, cation exchange capacity and pH were extracted from INEGI. Weather data in 10-day intervals were extracted from DAYMET. The database contains 4585 cropping events collected over seven years in the state of Chiapas, Mexico."
#data_citation "Verhulst, Nele; Trevisan, Rodrigo G.; Martin, Nicolas F.; Fonteyne, Simon; Dorado Betancourt, Hugo A.; Jimenez, Daniel; Gardeazabal, Andrea (2021). Agronomic, soil and weather data from modules and extension areas in hub Chiapas, Mexico 2012-2018. CIMMYT Research Data & Software Repository Network. Version 3.0. hdl:11529/10548624"
Thanks
From: Robert Hijmans @.> Sent: Friday, May 3, 2024 4:35:00 PM To: reagro/carob @.> Cc: Sila, Andrew M. (Alliance Bioversity-CIAT) @.>; Author @.> Subject: Re: [reagro/carob] Error with get_metadata (Issue #354) Newsletter / Marketing
Warning: External Sender, this email originated from outside of the organization. Do not click any links or open attachments unless you recognize the sender and know the content is safe.
Closed #354https://github.com/reagro/carob/issues/354 as completed.
— Reply to this email directly, view it on GitHubhttps://github.com/reagro/carob/issues/354#event-12696565967, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABBJRFG7LYAMR53OLSQP7LTZAOHAJAVCNFSM6AAAAABHFJ6S76VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJSGY4TMNJWGU4TMNY. You are receiving this because you authored the thread.Message ID: @.***>
@rhijmans or anyone else who has used the revised function from read_metadata() in carobiner to get_metadata() please help.
Am getting Error in (function (..., row.names = NULL, check.rows = FALSE, check.names = TRUE, : arguments imply differing number of rows: 1, 10
When I run: