Displaying 2 results from an estimated 2 matches for "1e23".
Did you mean:
123
2006 Sep 25
2
Splitting a character variable into a numeric one and a character one?
Hi All,
I have a data with a variable like this:
Column 1
"123abc"
"12cd34"
"1e23"
...
Now I want to do an operation that can split it into two variables:
Column 1 Column 2 Column 3
"123abc" 123 "abc"
"12cd34" 12 "cd34"
"1e23" 1...
2011 Mar 16
2
Singularity problem
Dear R,
If I have remembered correctly, a square matrix is singular if and only if
its determinant is zero. I am a bit confused by the following code error.
Can someone give me a hint?
> a <- matrix(c(1e20,1e2,1e3,1e3),2)
> det(a)
[1] 1e+23
> solve(a)
Error in solve.default(a) :
system is computationally singular: reciprocal condition number = 1e-17
Thanks in advance!
Feng
--