ABCRemoveSmallYields {ABCanalysis} | R Documentation |

## Extended Data cleaning for ABC analysis

### Description

Only the first column of Data is used, anything not beeing positive numerical value is set to zero

### Usage

```
ABCRemoveSmallYields(Data,CumSumSmallestPercentage)
```

### Arguments

`Data` |
vector[1:n] describes an array of data: n cases in rows of one variable |

`CumSumSmallestPercentage` |
(default =0.5),the smallest data up to a cumulated sum of less than CumSumSmallestPercentage |

### Details

Data <0 are set to zero, non-numeric values (NA,NaN,etc.) in Data are set to zero strings and chars are set to zero infinitive numbers are set to max(Data) the smallest data up to a cumulated sum of less than CumSumSmallestPercentage of the total sum (yield) is removed

### Value

Output is of type list which's parts are described in the following

`SubstantialData` |
columnvector containing Data>=0 and zeros for all NaN and negative values in Data(1:n) |

`Data2CleanInd` |
Index such that SubstantialData = nantozero(Data(Data2SubstantialInd)) |

`RemovedInd` |
Data(RemovedInd) is the data that has been removed |

### Author(s)

http://www.uni-marburg.de/fb12/datenbionik

Michael Thrun

*ABCanalysis*version 1.2.1 Index]