Only the first column of Data is used, anything not beeinh positive numerical value is set to zero
Usage
ABCcleanData(Data,RemoveSmallYields)
Arguments
Data
vector[1:n] describes an array of data: n cases in rows of one variable
RemoveSmallYields
bool, if RemoveSmallYields ==TRUE => the smallest data up to a cumulated sum of less than
1% of the total sum (yield) is removed
Value
Output is of type list which's parts are described in the following
CleanedDatavector [1:m], columnvector containing Data>=0 and zeros for all NA, NaN and negative values in Data(1:n)
Data2CleanIndvector [1:k], Index such that CleanedData = nantozero(Data(Data2CleanInd))
RemovedIndvector [1:l], Index such that Data(RemovedInd) is the data that has been removed if RemoveSmallYields==1
Details
Data <0 are="" set="" to="" zero,="" non-numeric="" values="" (na,nan,etc.)="" in="" data="" zero="" strings="" and="" chars="" infinitive="" numbers="" max(data)="" if="" removesmallyields="=TRUE" ==""> the smallest data up to a cumulated sum of less than
0.5 % of the total sum (yield) is removed0>