valueOf.String: Returns the string representation of the specified object

Description Usage Arguments Value Author(s) Examples

Description

Returns the string representation of the specified object.

Usage

1

Arguments

x

The object to be represented as a string.

Value

Returns the string representation of the specified object.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

Examples

1
2
3
4
5
6
7
8
  String$valueOf(TRUE)    # "TRUE"
  String$valueOf(42)      # "42"
  String$valueOf(42.01)   # "42.01"
  String$valueOf("same")  # "same"
  String$valueOf(NA)      # "NA"
  String$valueOf(NaN)     # "NaN"
  String$valueOf(Inf)     # "Inf"
  String$valueOf(0/0)     # "0/0"

HenrikBengtsson/R.lang documentation built on May 8, 2019, 7:50 p.m.