You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the RHoMIS package, I'm unable to get currency conversion factor when using correct form id. The code only seems to work when I use the form id mb6.
library(rhomis)
calculate_indicators_local(
file_path="Pre_Processed_Data.csv",
id_type = "string",
proj_id = "tree-aid",
form_id = "mb6", # <- output is correct only when mb6 is used
gender_categories = c("male_head", "female_head","male_adult", "female_adult","female_youth","male_youth")
)
Error Message:
When I change the form id, I get the following error:
5: In calculate_indicators(rhomis_data, units_and_conversions, ... :
Have not provided the ISO country codes for the survey.
Check the country names, and check that they are converted
Actual Result:
Using form id mb6, I get the wrong form id, correct country code and correct currency conversion as shown below.
Using form id gc6, I get the right form id, no country code and no currency conversion.
Expected Result:
The text was updated successfully, but these errors were encountered:
Sorry for the delay. Have you extracted the series of units tables as shown here. This function should generate a table which needs to be confirmed, and includes a conversion for country, (see here). Could you please try these steps and let me know if this fixes the issue?
Main Issue:
When using the RHoMIS package, I'm unable to get currency conversion factor when using correct form id. The code only seems to work when I use the form id
mb6
.Error Message:
When I change the form id, I get the following error:
Actual Result:
Using form id
mb6
, I get the wrong form id, correct country code and correct currency conversion as shown below.Using form id
gc6
, I get the right form id, no country code and no currency conversion.Expected Result:
The text was updated successfully, but these errors were encountered: