Displaying 20 results from an estimated 2000 matches similar to: "Clustering Functions used by Reverse-Dependencies"
2024 Jan 31
0
Basic astronomy package recommendation wanted.
Dear Richard,
I wrote s small shiny app to improve the search for CRAN-packages. It can be installed from GitHub:
https://github.com/discoleo/PackageBrowser
Searching for "(?<![- ]cat)astro|sun" yields 19 packages. A few (2 or 3) are unrelated. The remaining may be interesting, e.g. suntools, suncalc, astroFns.
Sincerely,
Leonard
[[alternative HTML version deleted]]
2013 Apr 08
4
checkUsage from codetools shows errors when function uses functions from loaded packages
Dear list members,
I frequently program small scripts and wrap them into functions to be
able to check them with checkUsage. In case these functions (loaded via
source or copy pasted to the R console) use functions from other
packages, I get this error:
no visible global function definition for ?xxxxxxx?
For example:
test = function() {
require(plotrix)
color.legend()
}
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 Nov 09
1
Dependency errors for package pracma
I tried to update my package {pracma} on CRAN from 2.4.2 (2022-09-21)
to version 2.4.4 (2023-11-08). This package reverse depends / imports
/ suggests on 350 packages on CRAN and 25 packages on Bioconductor.
The only changes are small corrections on some help files, a new
function for stereographic projection, and `gcd` and `Lcm` require
integer inputs now (these functions are not used in the
2008 Apr 07
3
findGlobals on apply
Hi the list,
Considere the following:
f <- function(x){apply(x,2,mean)}
findGlobals(f)
findGlobals consideres mean as a global variable, which it is not.
Is there a way to tell to findGlobals that mean is a function ?
Thanks
Christophe
2012 Dec 31
2
code to convert 3D geographical coordinates to Cartesian?
Is there packaged code to convert geographical coordinates (e.g.,
longitude, latitude, elevation) to Cartesian coordinates in 3-space?
I can see how to do this using
1. a spherical-to-Cartesian conversion like pracma::sph2cart(tpr)
http://cran.r-project.org/web/packages/pracma/
2. a geographical-to-spherical conversion. This seems to involve (in
roughly increasing order of difficulty or
2013 Feb 15
1
minimizing a numerical integration
Dear all,
I am a new user to R and I am using pracma and nloptr libraries to minimize
a numerical integration subject to a single constraint . The integrand
itself is somehow a complicated function of x and y that is computed
through several steps. i formulated the integrand in a separate function
called f which is a function of x &y. I want to find the optimal value of x
such that the
2012 May 09
2
problem with Gauss Hermite ( x and w )
Hi all,
I am using the 'gaussHermite' function from the 'pracma' library
############ CODES ###########
library(pracma)
cc=gaussHermite(10)
cc$x^2
cc$x^5
cc$x^4
############ CODES ###########
as far so good. However, it does NOT work for any NON integer values, say
############ CODES ###########
cc$x^(2.5)
cc$x^(-2.5)
############ CODES ###########
But just think about it
2012 Jan 27
3
Numerical instability in new R Windows development version
I have a question concerning the new Windows toolchain for R >= 2.14.2.
When trying out my package 'pracma' on the win-builder development version
it will stop with the following error message:
> f3 <- function(x, y) sqrt((1 - (x^2 + y^2)) * (x^2 + y^2 <= 1))
> dblquad(f3, -1, 1, -1, 1) # 2.094395124 , i.e. 2/3*pi , err = 2e-8
Warning in sqrt((1 - (x^2 + y^2)) *
2013 Jul 17
2
Using RasterBricks
Dear listers,
I am trying to create a RasterLayer of the values of a rasterbrick object.
The rasterbrick object has, for example, 100cells
library(raster)
r <- raster(ncol=10, nrow=10)
r[]=1:ncell(r)
s <- brick(r,r,r)
s <- s * 1:3
Each cell of the rasterfinal will have the AREA UNDER CURVE formed by the
values in each cell of the three original rasters.
For example:
s[4] has the
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
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
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
2009 Aug 20
1
Problem with updating/reinstalling R under UBUNTU (Hardy)
Hello,
I am a new R user not at ease with installing and updating R package under Ubuntu (Hardy), so that I cannot run R anymore ...! I initially installed r version 2.6.2.2 (amd64) from Intrepid instead of Hardy (!), but it worked. I tried to update to version 2.9, but did not succeeded:
(1) I added to my /etc/apt/sources.list an entry :
deb
2025 Mar 27
1
Problem with minimization that I failed to understand
?s 19:36 de 27/03/2025, Daniel Lobo escreveu:
> My code is to minimize the objective function
>
> therefore, shouldnt I expect that
>
> StartingValue = c(0.12, 0.04, 0.07, 0.03, 0.06, 0.07, 0.07, 0.04, 0.09,
> 0.08, 0.02, 0.02, 0.03, 0.06, 0.02, 0, 0.07, 0.05, 0.02, 0.02, 0.02)
> Fn(q1$par) < Fn(StartingValue)
> ## FALSE
>
> Below is the corrected code that can
2007 Nov 22
2
Clean programming with R
Hi all
Is there any compiler for R ? By compiler, I mean something that check
the cleanliness of the code : if we declare all the variables we use, if
we don't use external variable from a function and so on...
For exemple, something that will ring a bell on the following code
(saying "line 4 : 'pp' undefine in function 'power' ")
1. pp <- 3
2. power <-
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 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 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 =