Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gsirecode

Internal function: Recode missings with IEEE number and vice versa


Description

The missing codes can be replace with arbitrary value e.g. IEEE numbers and viceversa through this interface.

Usage

gsi.recodeM2C(x,y=x,BDL,SZ,MAR,MNAR,NMV)
gsi.recodeC2M(x,y=x,na,nan,ninf,inf,neg,zero,pos)
gsi.recodeM2Clean(x,y=x,BDL=NaN,SZ=NaN,MAR=NaN,MNAR=NA,NMV)
gsi.cleanR(x)

Arguments

x

the dataset having missings or IEEE numbers

y

a dataset of similar shape, where the replacment should take place

BDL

value to replace for BDL

SZ

value to replace for SZ

MAR

value to replace for MAR

MNAR

value to replace for MNAR

NMV

value to replace for NMV

na

value to replace for NA

nan

value to replace for NaN

ninf

value to replace for -Inf

inf

value to replace for Inf

neg

value to replace for numbers with x<0

zero

value to replace for numbers with x==0

pos

value to replace for numbers with x>0

Details

This functions are used internally to transform the different types of missings correctly.

Value

y with entries replaced. gsi.cleanR replaces all improper numbers with 0.

Note

Do not use gsi.* functions directly since they are internal functions of the package. To use a gsi function, attach the gsi environment.

Author(s)

K.Gerald v.d. Boogaart http://www.stat.boogaart.de

See Also

Examples

#gsi.plain(acomp(c(12,3,4)))

compositions

Compositional Data Analysis

v2.0-1
GPL (>= 2)
Authors
K. Gerald van den Boogaart <boogaart@hzdr.de>, Raimon Tolosana-Delgado, Matevz Bren
Initial release
2021-01-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.