double2singlePrecision: Converts numerical values from double precision to single...

View source: R/double2singlePrecision.R

double2singlePrecisionR Documentation

Converts numerical values from double precision to single precision.

Description

This function converts numeric column(s) of a data frame object, matrix or vector from double precision to single precision, e.g. to avoid a warning from MLwiN which currently only stores data in single precision.

Usage

double2singlePrecision(x)

Arguments

x

A data.frame object, matrix or vector to be converted. Column(s) of these objects will be ignored during conversion if they are not numeric.

Value

An object of numerical values in single precision will be returned.

Author(s)

Zhang, Z., Charlton, C.M.J., Parker, R.M.A., Leckie, G., and Browne, W.J. (2016) Centre for Multilevel Modelling, University of Bristol.


R2MLwiN documentation built on May 29, 2024, 2:10 a.m.