"man/man/nested_var.Rd" did not exist on "bff199adae90c7d7da3232e29a6460cb39178698"
Newer
Older
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/check_column_names.R
\name{nested_var}
\alias{nested_var}
\title{Check a objest in the json file}
\usage{
nested_var(var, rds)
}
\arguments{
\item{var}{A object or category of raw json.}
\item{rds}{All variables/column names in fadn.raw.rds file.}
}
\value{
A list of multiple objects. This list combines no machted variables and the modified json for the chosen object/category.
}
\description{
This function checks the node of chosen object/category for the json file and find out the variables
which are in json file but not in fadn.raw data file.
Returning two lists: unmatched variables/column names and modified json.
If unmatched variable exists, this variable will be deleted from the json list.
}
\details{
A json file has 6 parent objects/categories: "id", "info", "costs", "crops", "subsides", "livstock". This function checks all objects inside the parent object.
}
\author{
Xinxin Yang
}