C Library Functions  - replac (3)

NAME

replac(3f) - [M_datapac:VECTOR_OPERATION] replace all observations in a vector within a given interval with a user-specified constant

CONTENTS

Synopsis
Description
Options
Examples
Author
Maintainer
License

SYNOPSIS

SUBROUTINE REPLAC(X,N,Xmin,Xmax,Xnew)

DESCRIPTION

REPLAC(3f) replaces (with the value XNEW) all observations in the REAL vector X which are inside the closed (inclusive) interval defined by XMIN and XMAX.

All observations outside of this interval are left unchanged. Thus all observations in X which are equal to or larger than XMIN and equal to or smaller than XMAX, will be replaced by XNEW.

REPLAC(3f) (and the RETAIN(3f) and DELETE(3f) 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, replacement of an outlier with a more appropriate value can easily be done by REPLAC(3f).

OPTIONS

X description of parameter
Y description of parameter

EXAMPLES

Sample program:

   program demo_replac
   use M_datapac, only : replac
   implicit none
   ! call replac(x,y)
   end program demo_replac

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 replac (3) July 22, 2023
Generated by manServer 1.08 from e8a4428b-520a-4341-8ae6-38eeefcd3442 using man macros.