C Library Functions  - retain (3)

NAME

retain(3f) - [M_datapac:VECTOR_OPERATION] retain all observations in a vector within a user-specified interval

CONTENTS

Synopsis
Description
Options
Examples
Author
Maintainer
License

SYNOPSIS

SUBROUTINE RETAIN(X,N,Xmin,Xmax,Newn)

DESCRIPTION

RETAIN(3f) retains all observations in the REAL vector X which are inside the closed (inclusive) interval defined by XMIN and XMAX, while deleting all observations outside of this interval.

Thus all observations in X which are smaller than XMIN or larger than XMAX are deleted from X. RETAIN(3f) (and the REPLAC and DELETE subroutines) gives the data analyst the ability to easily ’clean up’ a data set which has missing and/or outlying observations so that a more appropriate subsequent data analysis may be performed. For example, a trimmed sample can easily be constructed by use of RETAIN(3f).

OPTIONS

X description of parameter
Y description of parameter

EXAMPLES

Sample program:

   program demo_retain
   use M_datapac, only : retain
   implicit none
   ! call retain(x,y)
   end program demo_retain

Results:

AUTHOR

The original DATAPAC library was written by James Filliben of the Statistical Engineering Division, National Institute of Standards and Technology.

MAINTAINER

John Urban, 2022.05.31

LICENSE

CC0-1.0


Nemo Release 3.1 retain (3) July 22, 2023
Generated by manServer 1.08 from 52d6eac5-edee-4a10-9b18-c46fca7b345a using man macros.