Learn R Programming

dMod (version 0.1)

getCoefficients: Get coefficients from a character

Description

Get coefficients from a character

Usage

getCoefficients(char, symbol)

Arguments

char
character, e.g. "2*x + y"
symbol
single character, e.g. "x" or "y"

Value

  • numeric vector with the coefficients

Examples

Run this code
getCoefficients("2*x + x + y", "x")

Run the code above in your browser using DataLab