My technical memo
Category
Computer and Internet
(49)
Programming
(19)
Mathematics
(10)
R
(8)
Bash
(6)
C++
(3)
LaTeX
(3)
Syntax
(2)
武术
(2)
Brain Teaser
(1)
CLRS
(1)
Complexity Analysis
(1)
Iteration
(1)
Mac
(1)
Markov Chain
(1)
Probability
(1)
Recursion
(1)
Spirituality
(1)
Friday, March 11, 2011
How to find minimizer in R
Suppose x is a vector, the following command finds its minimum:
min(x)
To find the minimizer, we can use the following command:
which(x==min(x))
It gives the index for the minimum.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Sitemeter
Visitors
No comments:
Post a Comment