Displaying 20 results from an estimated 10000 matches similar to: "calling pairs of variables into a function"
2011 Oct 28
3
program never enters browser mode when I add browser()
Dear All
I have a program that breaks at the following lines of code:
bigfunction =
{
...
object1 = myfunction(x)
object2 = strsplit(object1, ",")[[1]]
...
}
where myfunction is defined elsewhere outside of bigfunction.
The error I get is "error in strsplit() -- object1 not found".
However, when I insert browser() into my code so that the above reads,
bigfunction =
{
2009 Mar 23
1
Confusion regarding environments invoked by "source" command
Colleagues,
R version 2.8.1 in OS X
Within a function (which is already within a function), I am sourcing
a file. The syntax of the command is something like (this is just an
example; the actual code is much more complicated):
BIGFUNCTION <- function()
{
DATAFRAME <- [some commands to create a dataframe]
MYFUNCTION(DATAFRAME)
}
MYFUNCTION <- function(DATAFRAME)
{
print(ls())
2011 Jan 24
2
Masking commands - Permutation in gregmisc and e1071
I am using the function permutations from the package *gregmisc*. However, I
am also making use of the package *e1071*, which also contains a function
called permutations. I want to use the function permutations from the *
gregmisc* package, however, the other package is masking this function. This
happens both when I load the *e1071* package before *gregmisc* and when I
load *e1071* after I load
2002 Nov 26
1
permutation
The gregmisc package contains a function 'perumutations' which generates all
permutations of n choose r. It also contains 'combinations' which generates
all combinations, and which appears to match your example:
> library(gregmisc)
Loading required package: MASS
Attaching package `gregmisc':
The following object(s) are masked from package:base :
2012 Feb 28
2
Error: could not find function "hier.part"
Error: could not find function "hier.part"
things I have tried:
1. reinstall R (lastest version, on windows XP)
2. install package "gtools"
3. include:
library(gtools)
require(gtools)
4. how I call this function:
hier.part(c$Y, xdata, fam = "gaussian", gof = "Rsqu")
5.when I try to check what's in the package "gtools", I get (hier.part is
2002 Oct 31
1
Re: gregmisc version 0.7.3 now available
Dear Greg,
Thanks for the new release. The decomposition of the SSQ is just what I need!
Regards,
Martin.
Martin Hoyle,
School of Life and Environmental Sciences,
University of Nottingham,
University Park,
Nottingham,
NG7 2RD,
UK
Webpage: http://myprofile.cos.com/martinhoyle
>>> gregory_r_warnes at groton.pfizer.com 10/30/02 07:16PM >>>
Version 0.7.3 of the gregmisc package
2005 Oct 24
2
Strange update behavior of gregmisc
Hello,
I notice an odd behavior of gregmisc package when using
"update.packages()" via R --no-save (as root).
Every time I launch update.packages() gregmisc is repeatedly selected
for upgrade. Current available version of gregmisc is 2.08 according
to 'installed.packages()'. Despite I obviousely have already installed
the most up to date gregmisc, gregmisc will be updated
2004 Oct 18
2
why package gregmisc did not work
Dear useR
I want to know why package gregmisc did not work very
well. I did not find this package in my library
directory.
> local({a <- CRAN.packages()
+ install.packages(select.list(a[,1],,TRUE),
.libPaths()[1], available=a, dependencies=TRUE)})
trying URL
`http://cran.r-project.org/bin/windows/contrib/2.0/PACKAGES'
Content type `text/plain; charset=iso-8859-1' length
21630 bytes
2005 Jun 07
1
update.packages keeps trying to update gregmisc
If I issue the command
> update.packages()
it wants to update 'gregmisc' but then if I do it again right afterwards it
still wants to update 'gregmisc'. It should have updated everything
the first time and should not be trying to update anything the second
time. Any comments?
Here is the transcript of a session (R version at end):
> update.packages()
gregmisc :
2002 Sep 23
3
New version of gregmisc package
Version 0.6.0 of the gregmisc package has just been released on CRAN.
Description:
===========
Package: gregmisc
Description: Misc Functions written/maintained by Gregory R. Warnes
Title: Greg's Miscellaneous Functions
Version: 0.6.0
Date: 2002/09/23
Maintainer: Gregory R. Warnes <Gregory_R_Warnes at groton.pfizer.com>
Author: Gregory R. Warnes. Includes code provided by Ben
2002 Sep 23
3
New version of gregmisc package
Version 0.6.0 of the gregmisc package has just been released on CRAN.
Description:
===========
Package: gregmisc
Description: Misc Functions written/maintained by Gregory R. Warnes
Title: Greg's Miscellaneous Functions
Version: 0.6.0
Date: 2002/09/23
Maintainer: Gregory R. Warnes <Gregory_R_Warnes at groton.pfizer.com>
Author: Gregory R. Warnes. Includes code provided by Ben
2004 Oct 01
1
gregmisc 2.0.0 release
gregmisc 2.0.0
===========
gregmisc 2.0.0 has been released and is now available on CRAN.
Important Changes
---------------------------
- Now a package bundle
For this release, gregmisc has been split into a bundle containing 4
separate packages: gdata, gmodels, gplots and gtools. All of your favorite
functions are still present, but they are now better organized into thematic
groups,
2004 Oct 01
1
gregmisc 2.0.0 release
gregmisc 2.0.0
===========
gregmisc 2.0.0 has been released and is now available on CRAN.
Important Changes
---------------------------
- Now a package bundle
For this release, gregmisc has been split into a bundle containing 4
separate packages: gdata, gmodels, gplots and gtools. All of your favorite
functions are still present, but they are now better organized into thematic
groups,
2004 Oct 01
1
hier.part
I am using the hier.part package for calculating the goodness of fit.
Before I started with
my data I tried to use the example that the package comes with . I have
loaded the library
hier.part and gtools. But the package gives the following error
Loading required package: gregmisc
Loading required package: gregmisc
Warning messages:
1: There is no package called 'gregmisc' in:
2005 May 04
4
Unbundling gregmisc (was: loading gap package)
Let me redirect the topic a bit. I've been considering unbundling gregmisc.
The pro would be that people would find the component packages (i.e. gdata)
more easily. The con is that the packages have a number of
interdependencies, so you pretty much will need to get most of them anyway.
As the latest gregmisc bundle contains a gregmisc package that is just a
stub that depends on and loads
2005 May 04
4
Unbundling gregmisc (was: loading gap package)
Let me redirect the topic a bit. I've been considering unbundling gregmisc.
The pro would be that people would find the component packages (i.e. gdata)
more easily. The con is that the packages have a number of
interdependencies, so you pretty much will need to get most of them anyway.
As the latest gregmisc bundle contains a gregmisc package that is just a
stub that depends on and loads
2007 Nov 25
1
Constructin a call of function including permutation of column names - how to escape parentheses?
Dear R-users,
I would like to construct a list of arguments for a function in a format
function (list(item1=c("A","B"), item2=c("B","C")), item3=...):
The individual vectors in the list are permutations of colnames of a
dataframe.
The trouble is that I am not able to handle escaping of parentheses
correctly.
I was trying the following:
library(gregmisc)
2004 Mar 27
2
gregmisc: install trouble
Hello all,
I'm having trouble installing the package 'gregmisc'. I've run the
command:
> R CMD INSTALL -l /usr/lib/R/library /tmp/gregmisc_0.9.0.tar.gz
And I can see it shows up on the list of available packeage when I issue
> library()
But when I do
>library(gregmisc)
I get:
Error in parse(file, n, text, prompt) : syntax error on line 3105
All the other packages
2004 Oct 10
1
How to install a package that needs to see oher pkg dependencies:
Hi,
I am trying to install the genetics package on a server with Linux,
Fedora. I installed it in a PC and worked fine.
In a server since I am not used with R, I am not sure what do I need to
change so genetics pkg can see some package dependencies:
Any suggestion is appreciated, Aldi
Note:
genetics expects gregmisc and mvtnorm to be installed already. gregmisc
creates gdata etc dependencies.
2006 Apr 04
1
Packages reappear for installation each time update.packages() is run
Hi,
Whenever I run update.packages() certain packages reappear over and over
again as packages to be updated. Specifically, the problems appear with
the packages gregmisc and gap:
> update.packages()
gregmisc :
Version 2.0.7 installed in /usr/local/lib/R/library
Version 2.0.8 available at http://cran.dk.r-project.org
Update (y/N/c)? n
gap :
Version 1.0-3 installed in