On Sat, 18 Oct 2014, Anna Zakrisson Braeunlich wrote:
Thank you! That was a easy and fast solution!
If it was so easy, why couldn't you adapt Ista's solution? I suspect
it is because you don't understand his suggestion.
May I post a follow-up question? (I am not sure if this would rather
s
Steven Yen [Sun, Oct 19, 2014 at 06:17:48AM CEST]:
> Hello
> Can someone help me with the following, specifically in judging
> whether a matrix exists.
exists(my.matrix)
> I have trouble with the first line below. In
> this case, matrix obj$hessian exists and is 74 x 74. I receive the
> erro
all() takes a logical argument, not numeric. See ?all
I think you are looking for
is.null(obj$hessian)
If this isn't what you are looking for, please send a reproducible example
to the entire list.
Rich
On Sun, Oct 19, 2014 at 12:17 AM, Steven Yen wrote:
> Hello
> Can someone help me with the
Hello
Can someone help me with the following, specifically in judging
whether a matrix exists. I have trouble with the first line below. In
this case, matrix obj$hessian exists and is 74 x 74. I receive the
error message:
Warning message:
In all(w$hessian) : coercing argument of type 'double' t
On 17 October 2014 at 11:57, Rainer K. SACHS wrote:
| Running Windows 7, 64 bit (but also including, I think, 32 bit R files)
| RStudio 0.98.501
| win-library 3.1
|
| Getting error messages, probably related to add_path, for the
| following example script; I did look within RStudio and on the
| i
3. all.equal(a, as.integer(a))
Note that this one tests if 'a' can be stored accurately as a 32-bit signed
integer. If you want to know if 'a' can be used as an accurate count, then
you want to test if a+1>a (use abs() in case a is negative). E.g., try this
for a<-2^49-1, about 5*10^14.
You hav
Tks for your help, after investigate in your link, i find there seems three
ways can be adoped:
1. is.wholenumber <- function(x, tol = .Machine$double.eps^0.5) abs(x -
round(x)) < tol)
e.g. is.wholenumber(1)
2. x%%1==0
3. all.equal(a, as.integer(a))
and also included your last suggest
On 18/10/2014 17:34, Amos B. Elberg wrote:
You could include just that library in your distribution, and change the
dynamic link path using install_name_tool. I assume how to do so in detail is
beyond the intended scope of this mailing list.
In fact you just need to change the path, as that l
You could include just that library in your distribution, and change the
dynamic link path using install_name_tool. I assume how to do so in detail is
beyond the intended scope of this mailing list.
> On Oct 18, 2014, at 11:42 AM, althu07 wrote:
>
> Hi, I build a package on one Mac. I can ins
On Oct 18, 2014, at 8:42 AM, althu07 wrote:
> Hi, I build a package on one Mac. I can install the package on another Mac
> but it cannot be loaded. The following is the error message.
>
> Error in dyn.load(file, DLLpath = DLLpath, ...) :
> unable to load shared object
> '/Library/Frameworks/R.fr
On Oct 18, 2014, at 7:57 AM, umair durrani wrote:
> Please note that I have already asked this question on stackoverflow.com but
> did not get a satisfactory answer.
You should say what was unsatisfactory about the answer you were offered:
http://stackoverflow.com/questions/26434652/data-smooth
It sounds like you want an 'is.integral' function to tell if a
number acts like a mathematical integer, as opposed to
'is.integer', which tells if a number is stored as a 32-bit
computer integer. The test will depend on what properties
of mathematical integers you are most interested in.
is.in
Hi, I build a package on one Mac. I can install the package on another Mac
but it cannot be loaded. The following is the error message.
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object
'/Library/Frameworks/R.framework/Versions/3.1/Resources/library/mypkgfe/libs/mypkgf
Dear allI am trying to carry out step-wise panel regression analysis by making
adaptation in the use of plm package. Say, I am trying to regress the explained
variable (DEP) on 3 explanatory variables (EX1, EX2, EX3) using a panel data
set (dat). Of course, the required set of instructions would
Please note that I have already asked this question on stackoverflow.com but
did not get a satisfactory answer. I have a data set containing velocities of
2169 vehicles recorded at
intervals of 0.1 seconds. So, there are many rows for an individual
vehicle. Here I am reproducing the data only f
Thank you! That was a easy and fast solution!
May I post a follow-up question? (I am not sure if this would rather should be
posted as a new question, but I post it here and then I can re-post it if this
is the wrong place to ask this). I am ever so grateful for your help!
/Anna
##
Further and last trial:
> a=5.102> a-floor(a)==0[1] FALSE> a=5.9> a-floor(a)==0[1] FALSE> a=19>
> a-floor(a)==0[1] TRUE
All the best,
Sergio
2014-10-18 16:25 GMT+02:00 PO SU :
>
> It's due to that, 1 is a numeric, 1.2 is a numeric, though it's true. but
> deeply, when i want to know 1 is an
Sorry for my previous hurry misunderstanding.
Try this link:
http://stackoverflow.com/questions/3476782/how-to-check-if-the-number-is-integer
2014-10-18 16:25 GMT+02:00 PO SU :
>
> It's due to that, 1 is a numeric, 1.2 is a numeric, though it's true. but
> deeply, when i want to know 1 is an int
Don't know if this trivial reply will be useful
>a=5
>is.numeric(a)
>[1] TRUE
>b="try"
>is.numeric(b)
>[1] FALSE
Il 18/ott/2014 16:29 "PO SU" ha scritto:
>
> It's due to that, 1 is a numeric, 1.2 is a numeric, though it's true. but
> deeply, when i want to know 1 is an integer, there seems no
It's due to that, 1 is a numeric, 1.2 is a numeric, though it's true. but
deeply, when i want to know 1 is an integer, there seems no easy way to get
the answer.
So, is there anyone happen to know it?
--
PO SU
mail: desolato...@163.com
Majored in Statistics from SJTU
At 2014-10-18 20:1
> But i use a<-10/b , b is some value ,may be 5, maybe 5.5
If you do floating point arithmetic on integers you'll usually get floating
point answers, including the 5.0.
See FAQ 7.31 for the usual floating point problem, and ?all.equal for the usual
answer to it. You could see if a result is cl
But i use a<-10/b , b is some value ,may be 5, maybe 5.5
not in the form xxL ,so how can i do in the situation to judge a ?
--
PO SU
mail: desolato...@163.com
Majored in Statistics from SJTU
At 2014-10-18 18:58:48, "Berend Hasselman" wrote:
>
>On 18-10-2014, at 12:41, PO SU wrote:
On 18-10-2014, at 12:41, PO SU wrote:
>
>
> Dear usRers,
>I want to judge virable is or not a integer?
> e.g. is.integer(1) FALSE because it is a numeric, but i want it's true.
> as.integer may not be used. because i don't know a is 1 or 1.1.
>
is.integer is surely what you need if
Dear usRers,
I want to judge virable is or not a integer?
e.g. is.integer(1) FALSE because it is a numeric, but i want it's true.
as.integer may not be used. because i don't know a is 1 or 1.1.
--
PO SU
mail: desolato...@163.com
Majored in Statistics from SJTU
24 matches
Mail list logo