Displaying 20 results from an estimated 10000 matches similar to: "library path in Rd link"
2014 Dec 21
0
loadNamespace and versionChecking and the otherpackage::otherfun syntax
This is an enquiry not so much about what the code for loadNamespace does,
but
rather about the intent and design of loadNamespace, and how it interacts
with
the `::` function, which seems to me to follow a slightly different
philosophy.
It is not an urgent question - the issue that started me wondering has been
resolved another way - but I would like to complete my understanding of this
aspect
2010 May 09
3
Question about factor that is numeric, in aov()
I notice something curious about how aov() treats a numeric factor:
"score" is a dependent variable and "group" is a factor in a one-way ANOVA.
But "group" contains numeric codes and is not a factor (checked with
is.factor). An ANOVA done using:
> aov(score~factor(group), data=mydata)
gives the right answers. But
> aov(score~group, data=mydata)
also
2009 Mar 11
1
Using a NAMESPACE or the Imports field in DESCRIPTION?
Hello list,
I am writing a package which builds on a function ("foo") of another
package. I only need that particular function. What is the state of
the art to do this? Do I need a NAMESPACE file in my package?
Currently I still don't have one. Or can I do this with the Imports
field in my DESCRIPTION file? Reading chapter 1 of the "Writing R
Extensions" manual I do
2007 Jan 30
1
Error message when building a package
I'm trying to build a package. The machine is PowerPC G4 with Mac OS 10.4.8,
and I'm using R2.4.1.
I get "R CMD build roots" working, and it created roots.tar.gz. But I get
the following message when I run "R CMD INSTALL -l ../myrlibrary
roots.tar.gz"
======================================================================
* Installing *source* package 'roots'
2007 Sep 23
3
html help fails for named vector objects (PR#9927)
help(letters, htmlhelp=TRUE) fails.
Under the Mac OSX gui, the message is 'Help for the topic "a" was not
found.' Under the version documented below, and under Windows, the
message is
"No documentation for 'a' in specified packages and libraries:"
repeated for all the elements of letters, then followed by
"you could try
2007 Jul 05
4
Levene Test with R
Hi All,
is there Levene' test in R ? If not ,Could you give me some
advice about Levene test with R?
Thanks a lot! I am waiting for yours.
2010 Sep 18
1
help manual on R on ESS
Hi folks,
R on ESS
Why it is unable to pop up help manual on "R on ESS"?
?layout
Error in help("layout", htmlhelp = FALSE) :
unused argument(s) (htmlhelp = FALS
?plot
Error in help("plot", htmlhelp = FALSE) :
unused argument(s) (htmlhelp = FALSE)
etc.
But they work on R console and popup the manual without problem. TIA
B.R.
Stephen L
2010 Oct 28
3
help with help()
Hi all
Just this morning I upgraded to R 2.12.0 (for Mac OS X 10.6.4).
All went well until I needed to run a help() or help.search() in my session,
which I'm running within Emacs (ESS 5.3.7).
Say I need help with the command 'density'. When I type
help(density)
or
?density
the ESS help buffer opens, it is titled *help[R](density)* but it contains
only a couple of lines saying,
2002 Feb 05
1
htmlhelp() question
I wonder if anyone who has worked on the win32 version of
R could help me with a HtmlHelp question?
When you're building a win32 program using mingw (in my
case, cross-compiling under GNU/Linux), what import
library do you use to link against the HtmlHelp()
function? I have got a copy of MS's htmlhelp.lib, but
mingw doesn't seem to like this format; it wants an
archive in .a format.
2007 Jan 09
5
a question of substitute
Hi all,
I want to write a wrapper for an analysis of variance and I face a curious
problem. Here are two different wrappers:
fun.1 <- function(formula) {
summary(aov(formula))
}
fun.2 <- function(formula) {
oneway.test(formula)
}
values <- c(15, 8, 17, 7, 26, 12, 8, 11, 16, 9, 16,
24, 20, 19, 9, 17, 11, 8, 15, 6, 14)
group <- rep(1:3, each=7)
# While the first
2006 Jul 17
1
Getting rid of for loops
Hello R-users!
I have a style question. I know that for loops are somewhat frowned upon in
R, and I was trying to figure out a nice way to do something without using
loops, but figured that i could get it done quickly using them. I am now
looking to see what kind of tricks I can use to make this code a bit more
aesthetically appealing to other R users (and learn something about R along
the
2020 Apr 13
3
detect ->
Using => and <= instead of -> and <- would make things easier, although the
precedence would be different.
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Mon, Apr 13, 2020 at 1:43 AM Adrian Du?a <dusa.adrian at gmail.com> wrote:
> Thank you for your replies, this actually has little to do with the
> regular R code but more to signal what in my package QCA is referred
2007 Jan 30
6
jump in sequence
Dear list,
This should be a simple one, I just cannot see it.
I need to generate a sequence of the form:
4 5 6 13 14 15 22 23 24
That is: starting with 4, make a 3 numbers sequence, jump 6, then another 3
and so on.
I can create a whole vector with:
myvec <- rep(rep(c(F, T, F), rep(3, 3)), 3)
Then see which are TRUE:
which(myvec)
[1] 4 5 6 13 14 15 22 23 24
I'd like to avoid
2004 Oct 07
2
two help problems in R-2.0.0 for Windows (PR#7269)
R-2.0.0, WinNT / WinXP:
options(chmhelp=TRUE)
?dnorm # does not work!
?Normal # works!
Looks like calling compiled html help does not work for aliases, but
only for the title of help pages...
And a quick fix without changing the design is to change lines
136-137 in .../src/library/utils/R/help.R as follows:
- err <- .C("Rchtml", hlpfile, topic,
- err =
2007 Oct 06
3
list matching
Dear list,
Given a list of elements like:
aa <- list(one=c("o", "n", "e"),
tea=c("t", "e", "a"),
thre=c("t", "h", "r", "e"))
Is there a function that returns the intersection between all?
Both match() and intersect() only deal with two arguments, but sometimes I
2004 May 27
4
extract columns using their names
Hello,
Is there a way to extract multiple columns from a dataframe using their
names instead of their numbers?
Currently I use:
data2 <- data1[, c(1,3,9)]
And I am looking for something like
data2 <- data1[, c("XX","YY","ZZ")]
I use the same dataframe for many purposes, and I run codes that change
the order of the columns every time.
Many thanks,
Adrian
2006 Aug 09
3
objects and environments
Dear list,
I have two functions created in the same environment, fun1 and fun2.
fun2 is called by fun1, but fun2 should use an object which is created in fun1
fun1 <- function(x) {
ifelse(somecondition, bb <- "o", bb <- "*")
## mymatrix is created, then
myresult <- apply(mymatrix, 1, fun2)
}
fun2 <- function(idx) {
if (bb == "o) {
#
2016 Apr 05
3
Problem with <= (less than or equal): not giving the expected result
Thanks Adrian and Thierry (from the previous answer).
I was aware of the all.equal function, but there is nothing similar for <= (e.g. all.smallerEqual)?
cheers, jo
On 05 Apr 2016, at 14:31, Adrian Du?a <dusa.adrian at unibuc.ro<mailto:dusa.adrian at unibuc.ro>> wrote:
Yes, that does have to do with floating point representation.
I use this function for these types of
2008 Aug 30
4
remove levels from a factor
Hi,
how to remove levels that have less than a specific number such as 2. i.e..
> f<-as.factor(c("a","b","a"))
> f
[1] a b a
Levels: a b
I want to remove level b because level b has less than 2.
> f
[1] a a
Levels: a
[[alternative HTML version deleted]]
2016 Apr 13
2
formula argument evaluation
I suppose it would work, although "=>" is rather a descriptive symbol and
less a function.
But choosing between quoting:
"A + B => C"
and a regular function:
A + B %=>% C
probably quoting is the most straightforward, as the result of the foo()
function has to be a string anyways (which is parsed by other functions).
On Tue, Apr 12, 2016 at 6:20 PM, Richard M.