# searchK {#searchk}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`searchK(X, k)`

## Arguments {#arguments}

**X** is a vector.

**k** is an integer indicating the k-th smallest item.

## Details {#details}

Return the k-th smallest item ignoring null values.

## Examples {#examples}

```
searchK(1 7 3 5 3 9 6 1 NULL, 1);
// output: 1

searchK(1 7 3 5 3 9 6 1 NULL, 2);
// output: 1

searchK(1 7 3 5 3 9 6 1 NULL, 3);
// output: 3
```

