Subject: | XploRe: Learning Guide |
See XploRe: |
Quantlet: | desc07 | |
Description: | Missing and infinite values. | |
Download: | desc07.xpl |
setenv("outputstringformat","%s") library("xplore") ; matnan=#(NaN, 1, 2) ~ #(Inf, -Inf, 3) ~ #(4, 5, 6) matnan ; countNaN(matnan) countNotNumber(matnan) ; isNaN(matnan) isInf(matnan) isNumber(matnan) ; inum=prod(isNumber(matnan),2) inum matnew=paf(matnan,inum) matnew ; matgood=replace(matnan,#(NaN,Inf,-Inf),0) matgood
Subject: | XploRe: Learning Guide |
See XploRe: |