Displaying 20 results from an estimated 300 matches similar to: "R 14.0, ggplot2: could not find function "initRefFields""
2013 Feb 17
2
How to findout the name of a dataframe
Let'say we have a dataframe mydata with column v1. If mydata$v1 is passed
to a function, is there way, then, to extract the name of the dataframe?
What I now do is passing the name of the dataframe to the funcion, so
passing two parameters. Maybe with mydata$v1 it is not possible, but with
mydata['v1'] or mydata[,'v1'] it is?
Thanks
Frans
-------------------
Frans Marcelissen
2010 Dec 19
2
barplot: width of label
Hello,
I try to make barplots with rather wide labels. A simplified example of
this:
x <- c(12, 33, 56, 67, 15, 66)
names(x) <- c('Richard with a long surname','Minnie with a long
name,'Albert','Helen','Joe','Kingston')
barplot(x, las = 2)
Now the label 'Richard with a long surname' is too long to fit beneath the
bars. A simple solution
2012 Dec 21
2
ggplot2: setting martin
Is it possible to set the margin in ggplot2 to a fixed size? I create many
plots, and I want them to look the same.
Especially I want them to have the same left margin.
But
P<-ggplot()+geom_bar(aes(c("short label1","short
label2"),runif(2)))+coord_flip()
P<-creates a plot with another margin as
ggplot()+geom_bar(aes(c("very very very very long
2012 Sep 13
2
rstudio client on the i-pad
Hi,
The combination of ipad+rstudio (server) would be a fantastic combination-if
it worked. It _is_ possible to run rstudio in the safari browser of the
ipad, but the keyboard doesn't work correctly (blanks are inserted after
each character), making it almost impossible to use. Does anyone know a
solution? Or know when a solution is ready?
-------------------
dr F.H.G. (Frans) Marcelissen
2011 Aug 05
1
initFields() method no longer coerces arguments in R-devel
Dear all,
I've just had a package update bounced from CRAN because of a recent
change in R-devel which seems to affect the behaviour of the
initFields() reference class method. (The change must be very recent
because I tested the package on a week-old build of R-devel.) It seems
that the method no longer coerces its arguments to the expected type
of each field. For a simple example:
> Foo
2011 Jun 16
2
cannot install Rcmdr on ubuntu 11.4
Hello,
For one reason or another, I cannot install Rcmdr on my R 2.12.2 ubuntu 11.4 system.
I run R as root When I try to install Rcmdr, then whatever mirror I select, I get the message:
install.packages('Rcmdr',dependencies=TRUE)
Installing package(s) into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
Loading Tcl/Tk
2013 Dec 15
3
how to add a line in the graph?
t<--4:4
y<-c(5,7,10,13,15,16,14,12,11)
plot(t,y,type="l")
how can i add a curve y=0.83*t-0.44*t^2 in the graph?
[[alternative HTML version deleted]]
2013 Mar 28
1
Ref classes initFields has incorrect environment?
As suggested by the following code:
A <- setRefClass("A", fields = list(x = "logical"),
methods = list(initialize = function(...) {
x <<- FALSE
initFields(...)
}))
A$new()
# Works as expected
quote <- as.character
A$new()
# Error in function (value) :
# invalid replacement for field ?x?, should be from class ?logical?
or a subclass (was class
2010 Nov 21
1
Ref classes: can I register fields as I register methods?
Hi there,
is it possible to register fields as you can register methods with
getRefClass("Classname")$methods(.)?
I know that you should usually give some thought on which fields you need
and hardcode them in the class def. But I''m playing around with dynamically
creating/extending sort of a template class that already offers basic
functionality shared by all objects
2011 May 04
1
General "nil" reference class object
Dear John and others,
I've been wondering about whether there's any way to indicate a "nil"
reference class object, which will represent "no value", and be tested
for, but not fail the internal type checking. NULL is the obvious
choice (or seems so to me), but can only be used if an explicit class
union is created:
> Foo <- setRefClass("Foo")
> Bar
2012 Nov 08
1
Dabbling with R5 setRefClass - Inheritance problems
Hello,
I wrote a class like so:
> rcfdpsuperclass <- setRefClass(
> Class="rcfdpsuperclass",
> fields = list(
> RcfpdVersion = "character"),
> methods = list(
> initialize = function(){
> 'Populates fields with defaults and lock as appropriate'
> initFields(
> RcfpdVersion =
2010 Oct 28
2
Reference Classes: Generalizing Reference Class Generator objects?
Is it possible to override the $new(...) in the reference class
generator? I have tried adding a "new" method to the methods of the
class, but that is obviously not correct. I have also tried adding it to
the class generator, but the class generator still uses the default
constructor.
As a simple example, this is the current interface:
TestClass <- setRefClass
2000 Mar 13
1
I can't get multiple interfaces to work
I've looked through all the doc and searched the list archives, but I just
can't seem to get it to work. I have a Linux box with 5 ethernet
interfaces, 3 of which have winboxes I'd like to include in my little Samba
network. I'm able to get it far enough for each winbox to see the linbox,
but they can't see each other.
Here's my setup:
Winboxes Linbox
Win2k -
2007 May 03
1
Double DTMF digits
When dtmfmode is set to inband for SIP, and i originate a call from sip
out to the PSTN, I can hear the DTMF digit twice in the audio stream.
Once very briefly and once for normal duration.
Our Theory: While Asterisk is parsing the DTMF, for a fraction of a
second, while the end user generated DTMF is being detected, the DTMF is
passed inband. Once the DTMF is detected Asterisk silences it
2005 Dec 05
2
plot() and points() precision control
Hi all,
I have a problem in that when I plot points that have a high degree of
precision, some significant rounding seems to occur, resulting in
uneccessary overlap of my points. Is there a way to specify the
resolution or precision in plotting functions? Is there an underlying
grid I have to modify somehow?
Many Thanks,
Jon
--
Mares eat oats and does eat oats and little lambs eat ivy. A
2008 Feb 25
1
Realtime Queue Status for Agents
Hello,
I am having a problem which stems from the fact that the Agents that
handle my call queues are unaware if there are are people waiting in the
queue. I have found the following configuration options but they are
not very helpful.
in queues.conf:
announce=xxx
The "announce = XXX" option in queues.conf makes Asterisk play the XXX
announcement to the member of the queue who
2003 Aug 03
7
Forensics CD Toolkit for FreeBSD
Hi,
I'd like to build a toolkit CD specifically for conducting
forensics on FreeBSD. I'm not talking about a bootable
CD but rather one that I could pop into a CD ROM drive
and run trusted commands like ps, netstat, ls, etc., from.
I'd like to build a CD that would work on -RELEASE versions
of FreeBSD like 5.1 and -STABLE versions of FreeBSD too.
Can anyone give me any pointers
2003 Aug 03
7
Forensics CD Toolkit for FreeBSD
Hi,
I'd like to build a toolkit CD specifically for conducting
forensics on FreeBSD. I'm not talking about a bootable
CD but rather one that I could pop into a CD ROM drive
and run trusted commands like ps, netstat, ls, etc., from.
I'd like to build a CD that would work on -RELEASE versions
of FreeBSD like 5.1 and -STABLE versions of FreeBSD too.
Can anyone give me any pointers
2011 Jun 01
1
possibly invalid assertion in setRefClass?
> setRefClass("Foo", fields = list())
Error in setRefClass("Foo", fields = list()) :
A list argument for fields must have nonempty names for all the fields
In my opinion, the above should not fail. There are no fields.
Thanks,
Michael
[[alternative HTML version deleted]]
2012 Jun 25
1
Very simple question R5 setRefClass and Initialize
Hi,
New to this list, and glad I found R5 which si a great improvement to R
for my work.
Something seems odd anyway, when I do a setRefClass, the initialize
method execute at the class definition.
I would like it to execute only when an instance is created.
How can I do that? I found no way to test if the code execution is when
the class definition happens or when a $new instance is created.