Hi Sasa,
Those latitude look equidistant with a separation of 0.05.
I guess you want to calculate the zonal mean along the latitude, right?
#estimate the lower and upper latitude for the cut
lat.dist=0.05 #equidistant spacing along latitude
lat.min=min(df$LAT,na.rm=T)-lat.dist/2
lat.max=max(df$LA
On further thought -- and subject to my prior interpretation -- I
think a foolproof way of truncating to 4 decimal digits is to treat
them as character strings rather than numerics and use regex
operations:
> with(df,tapply(TK.QUADRANT,
> sub("(\\.[[:digit:]]{4}).*","\\1",as.character(LAT)),mean)
On Thu, Nov 15, 2018 at 10:40 AM Boris Steipe wrote:
>
> Use round() with the appropriate "digits" argument. Then use unique() to
> define your groups.
No.
> round(c(.124,.126),2)
[1] 0.12 0.13
As I understand it, the OP said he wanted the last decimal to be ignored.
The OP also did not speci
Hello Michael and all.
1. I replaced INT with Numeric that did not solve the error problem.
2. However I discovered that my matrix was the problem, I had it set to 2,5 and
when I set it to 6,6 I no longer get the error, which was due to not having the
correct or more than necessary fields in th
Use round() with the appropriate "digits" argument. Then use unique() to
define your groups.
HTH,
B.
> On 2018-11-15, at 11:48, sasa kosanic wrote:
>
> Dear All,
>
> I would very much appreciate the help with following:
> I need to calculate the mean of different lat/long points that shoul
Hello Michael, thank you for your responses.
I will have to look through the myriad of iterations of attempts at all this on
this project but it seems to me that I tried that? Or tried to convert the
integers to numeric and it errored out?
If not I certainly will do so and let know, thank you S
Dear all,
I am using package MCMCglmm and I would like to request for an
assistant on what
to look in the output which can tell me whether there is
significant association among the three antibody
titers(logiga,logigm,logigg) for example association between antibody
titers and exposure I ca
OK. Then post here but *not* on mixed models list. One or the other,
exclusive or.
-- Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Thu, Nov 15, 2018 at 7
Dear Bert
Since glmulti operates on glm/lm models I think, although I agree about
not cross-posting, that it was OK here. Perhaps I do not understand the
full significance of mixed models though.
Michael
On 15/11/2018 15:43, Bert Gunter wrote:
Please do not cross post (see te posting guide)
Please do not cross post (see te posting guide). This should go only
to the mixed models list.
-- Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Thu, Nov
Hi all,
I have the following data for which I create a document term matrix first and
then I add the time available to the dtm. In order to see the correlations to
the term "updat" in the different years, I would like to have a heat-map for
findassoc in a way that x-axis shows the time.
It would depend on the format of the gridded data. Assuming it is a data frame
like DF2 in my earlier answer, you just reverse the steps:
> DF2
110.5 111 111.5 112
46 6.1 4.5 7.8 5.5
45.5 3.2 5.0 1.8 2.0
> DF3 <- data.frame(as.table(as.matrix(DF2)))
Var1 Var2 Freq
1 46 110.5
Hi Patrick,
I think it would help to start from the beginning and give complete
(but concise!) replication instructions, including telling us what
host and gest operating systems you are using (including the
versions), the version
of virtualbox you used, and exactly what steps are needed to
repro
Yes, you have misunderstood what memoise is for.
First, it is for when you call your function with the same inputs frequently as
part of your calling-level algorithm. For your iterative calculation you would
have a stuck (cycling) process if the same value of current were to be
revisited... e
Hi,
I want to compute a lot of values and I have tried to use
memoise::memoise to speed-up the computation.
However it is much slower using the memoised version.
I guess I have misunderstood how to use the package memoise or the
purpose of the package.
The code takes more than 2 minutes to f
Dear Bill
I am not sure what is going on here but I notice that 2 of your
covariates are numeric and 3 integer. What happens if you make them all
numeric?
Michael
On 15/11/2018 11:46, Bill Poling wrote:
Hi, I have removed the pdf which was causing my e-mail to be blocked by
moderators, my
Hi, I have removed the pdf which was causing my e-mail to be blocked by
moderators, my apologies.
https://www.jstatsoft.org/article/view/v034i12/v34i12.pdf
Original post:
Hello. I am still trying to get some of the examples in this glmulti pdf to
work with my data.
I have sent e-mails to auth
17 matches
Mail list logo