zero2NA: Replace the element of a vector which based on another...

Description Usage Arguments Details

View source: R/zero2NA.R

Description

Replace the element of a vector which based on another dataframe has the rowsum of zero to NA

Usage

1
zero2NA(vec, baseon)

Arguments

vec

the vector which needs to be processed

baseon

the dataframe which the calcualtion is based on.

Details

if there is no resturant for an agent, replace the number of resturant (i,e, 0) to NA


mengluchu/food_envir documentation built on May 3, 2019, 1:34 p.m.