Learn R Programming

ch (version 0.1.0.2)

scan.str: Read string into a vector

Description

Read data into a vector from a string.

Usage

scan.str(string)

Arguments

string

a string that number is separated by ' '.

Value

A vector that contains numbers.

Examples

Run this code
# NOT RUN {
m <- "12 23 45 78 90 89 97"
scan.str(m)
# }

Run the code above in your browser using DataLab