Displaying 20 results from an estimated 1000 matches similar to: "Basic astronomy package recommendation wanted."
2024 Jan 30
2
Basic astronomy package recommendation wanted.
On Tue, 30 Jan 2024, Richard O'Keefe writes:
> Given
> - UTC timestamp
> - a location (latitude,longitude,elevation)
> I want to know
> - the sun angles
> - the moon angles
> - the phase of the moon.
> I looked on CRAN for astronomy, but didn't notice anything that seems
> to offer what I want. I could try coding these functions myself, but
> "if
2024 Jan 30
1
Basic astronomy package recommendation wanted.
There is also the package solrad that might do some of this. It is more intended for calculating solar radiation, which is probably not what you want, but may do other things you may find helpful.
> On Jan 30, 2024, at 5:44?AM, Enrico Schumann <es at enricoschumann.net> wrote:
>
> On Tue, 30 Jan 2024, Richard O'Keefe writes:
>
>> Given
>> - UTC timestamp
2024 Feb 24
1
Clustering Functions used by Reverse-Dependencies
Dear R Users,
Are there any tools to extract the function names called by reverse-dependencies?
I would like to group these functions using clustering methods based on the co-occurrence in the reverse-dependencies.
Utility: It may be possible to split complex packages into modules with fewer reverse-dependencies.
Package pkgdepR may offer some of the functionality; but I did not have time to
2024 Jan 30
1
Basic astronomy package recommendation wanted.
Given
- UTC timestamp
- a location (latitude,longitude,elevation)
I want to know
- the sun angles
- the moon angles
- the phase of the moon.
I looked on CRAN for astronomy, but didn't notice anything that seems
to offer what I want. I could try coding these functions myself, but
"if you didn't write it you didn't wrong it".
2023 Mar 08
1
Default Generic function for: args(name, default = TRUE)
?.S3methods
f <- function()(2)
> length(.S3methods(f))
[1] 0
> length(.S3methods(print))
[1] 206
There may be better ways, but this is what came to my mind.
-- Bert
On Wed, Mar 8, 2023 at 11:09?AM Leonard Mada via R-help <
r-help at r-project.org> wrote:
> Dear R-Users,
>
> I want to change the args() function to return by default the arguments
> of the default
2024 Jan 30
2
Use of geometric mean for geochemical concentrations
Dear Rich,
It depends how the data is generated.
Although I am not an expert in ecology, I can explain it based on a biomedical example.
Certain variables are generated geometrically (exponentially), e.g. MIC or Titer.
MIC = Minimum Inhibitory Concentration for bacterial resistance
Titer = dilution which still has an effect, e.g. serially diluting blood samples;
Obviously, diluting the
2023 Mar 08
1
Default Generic function for: args(name, default = TRUE)
Dear R-Users,
I want to change the args() function to return by default the arguments
of the default generic function:
args = function(name, default = TRUE) {
?? ?# TODO: && is.function.generic();
?? ?if(default) {
?? ???? fn = match.call()[[2]];
?? ???? fn = paste0(as.character(fn), ".default");
?? ???? name = fn;
?? ?}
?? ?.Internal(args(name));
}
Is there a nice way
2023 Mar 08
0
Default Generic function for: args(name, default = TRUE)
Dear Gregg,
Thank you for the fast response.
I believe though that isGeneric works only for S4-functions:
isGeneric("plot")
# FALSE
I still try to get it to work.
Sincerely,
Leonard
On 3/8/2023 9:13 PM, Gregg Powell wrote:
> Yes, there is a way to check if a function is generic. You can use the isGeneric function to check if a function is generic. Here's an updated version
2023 Nov 29
0
computer algebra in R
Dear Konrad,
I presume that the system can be written as follows, where h0, d0, ga0, kga and kd are given:
err1 = h + hd + hga - h0;
err2 = d + hd - d0;
err3 = ga + hga - ga0;
err4 = hga - kga*h*ga;
err5 = hd - kd*h*d;
All error terms should be zero.
Do you need (a) the symbolic solution or (b) is a numeric solution fine?
I do not have any experience with yacas or caracas. But see below.
###
2023 Jan 30
0
Covid Mutations: Cumulative?
Dear R-Users,
Did anyone follow more closely the SARS Cov-2 lineages?
I have done a quick check of Cov-2 mutations on the list downloaded from
NCBI (see GitHub page below); but it seems that the list contains the
cumulative mutations only for B.1 => B.1.1, but not after the B.1.1 branch:
# B.1 => B.1.1 seems cumulative
diff.lineage("B.1.1", "B.1", data=z)
# but B.1.1
2023 Sep 04
1
[Pkg-Collaboratos] BioShapes Almost-Package
Dear R-List Members,
I am looking for collaborators to further develop the BioShapes
almost-package. I added a brief description below.
A.) BioShapes (Almost-) Package
The aim of the BioShapes quasi-package is to facilitate the generation
of graphical objects resembling biological and chemical entities,
enabling the construction of diagrams based on these objects. It
currently includes
2024 Oct 10
0
Discriminant of a cubic polynomial
Dear Thomas,
Unfortunately, I do not know if any packages implement this functionality. Though, it is a topic that interests me.
Unlike the "classic discriminant", I prefer to work with the reduced polynomial. This "discriminant" is generalizable to a superset of Chebysev polynomials (which I called Cardano-polynomials).
x^3 - 3*c*x - 2*d = 0
x^5 - 5*c*x^3 + 5*c^2*x - 2*d =
2006 Jan 02
0
boostrap astronomy problem
Hi,
I am an astronomer and somewhat new to boostrap statistics. I understand
the basic idea of bootstrap resampling, but am uncertain if it would be
useful in my case or not. My problem consists of maximizing a likelihood
function based on the velocities of a number of stars. My assumed
distribution of velocities of these stars is:
2012 May 20
1
CRAN (and crantastic) updates this week
CRAN (and crantastic) updates this week
New packages
------------
* bisectr (0.0.2)
Maintainer: Winston Chang
Author(s): Winston Chang <winston at stdout.org>
License: GPL-2
http://crantastic.org/packages/bisectr
Tools to find bad commits with git bisect
* CUMP (1.0)
Maintainer: Xuan Liu
Author(s): Xuan Liu <liuxuan at bu.edu> and Qiong Yang <qyang at bu.edu>
2024 Sep 05
1
BUG: atan(1i) / 5 = NaN+Infi ?
> complex(real = 0, imaginary = Inf)
[1] 0+Infi
> Inf*1i
[1] NaN+Infi
>> complex(real = 0, imaginary = Inf)/5
[1] NaN+Infi
See the Note in ?complex for the explanation, I think. Duncan can correct
if I'm wrong.
-- Bert
On Thu, Sep 5, 2024 at 3:20?PM Leo Mada <leo.mada at syonic.eu> wrote:
> Dear Bert,
>
> These behave like real divisions/multiplications:
>
2024 Sep 05
2
BUG: atan(1i) / 5 = NaN+Infi ?
atan(1i) -> 0 + Inf i
complex(1/5) -> 0.2 + 0i
atan(1i) -> (0 + Inf i) * (0.2 + 0i)
-> 0*0.2 + 0*0i + Inf i * 0.2 + Inf i * 0i
infinity times zero is undefined
-> 0 + 0i + Inf i + NaN * i^2
-> 0 + 0i + Inf i - NaN
-> NaN + Inf i
I am not sure how complex arithmetic could arrive at another answer.
I advise against messing with infinities... use atan2() if you don't
2024 Sep 05
3
BUG: atan(1i) / 5 = NaN+Infi ?
On 2024-09-05 4:23 p.m., Leo Mada via R-help wrote:
> Dear R Users,
>
> Is this desired behaviour?
> I presume it's a bug.
>
> atan(1i)
> # 0+Infi
>
> tan(atan(1i))
> # 0+1i
>
> atan(1i) / 5
> # NaN+Infi
There's no need to involve atan() and tan() in this:
> (0+Inf*1i)/5
[1] NaN+Infi
Why do you think this is a bug?
Duncan Murdoch
2024 Sep 05
1
BUG: atan(1i) / 5 = NaN+Infi ?
Dear Bert,
These behave like real divisions/multiplications:
complex(re=Inf, im = Inf) * 5
# Inf+Infi
complex(re=-Inf, im = Inf) * 5
# -Inf+Infi
The real division / multiplication should be faster and also is well behaved. I was expecting R to do the real division/multiplication on a complex number. Which R actually does for these very particular cases; but not when only Im(x) is Inf.
2023 Oct 16
1
Create new data frame with conditional sums
If one makes the reasonable assumption that Pct is much larger than
Cutoff, sorting Cutoff is the expensive part e.g O(nlog2(n) for
Quicksort (n = length Cutoff). I believe looping is O(n^2). Jeff's
approach using findInterval may be faster. Of course implementation
details matter.
-- Bert
On Mon, Oct 16, 2023 at 4:41?AM Leonard Mada <leo.mada at syonic.eu> wrote:
>
> Dear
2024 Jun 02
1
Tools to modify highlighted areas in pdf documents?
? Sat, 1 Jun 2024 16:16:23 +0000
Leo Mada via R-help <r-help at r-project.org> ?????:
> When highlighting pdf-documents with Microsoft Edge, the bounding box
> is sometimes misplaced, and quite ugly so. It also lacks the ability
> to draw lines or arrows.
>
> On the other hand, I did not get used to Acrobat Reader: it usually
> involves much more effort to add specific