Learn R Programming

RcppFastFloat (version 0.0.5)

parseExample: Floating Point Parsing Example

Description

This example is adapted from the example of the upstream README.md file, and generalized to be called from R with variable input.

Usage

parseExample(input = "3.1416 xyz ", verbose = TRUE)

Value

A floating point scalar is returned on success; in case of parsing failure the function exists via stop().

Arguments

input

A character variable with text to parse including a simple default

verbose

A boolean variable to show or suppress progress, defaults to true

Examples

Run this code
parseExample()

Run the code above in your browser using DataLab