Displaying 20 results from an estimated 10000 matches similar to: "getting attributes of graphics objects"
2003 Feb 14
2
factorial function
Sorry for the stupid question, but is there the factorial function in
R? I tried to find it using help.search('factorial') but got nothing
appropriate.
Many thanks,
-Serge
2003 Feb 11
2
problems with ess and xemacs on win32
Hi there;
I have the following problem --- Xemacs cannot
correctly parse a path to file when I load it.
I have the following error, reported by Xemacs:
from ess-parse-errors:
Error in file(file, "r") : cannot open file
`u:US-mortalityjuttalexible.r
While the correct file path should be:
u:\US-mortality\jutta\flexible.r
Any ideas? Many thanks for your help.
-Serge
2003 Jan 29
2
substitute, eval and hastables
I have the following problem. I have an automatically generated named
list with "stringified" names:
a <- list("A"=..., "B"=..., "C"=..., )
then I want to refer to the elements of the list, stored as an vector
of names:
nn <- c("A", "B", "C"), so that I could get list elements like
a$nn[1], a$nn[2], etc. Obviously it
2004 Jun 17
1
Tutorial for graphics
I don't know of a good tutorial, but I find that looking at ?par is
usually good for answering most graphing questions.
To resize axes, look at xlim and ylim under ?par. As for changing the
axes, you can suppress the axes using e.g., for the x-axis xaxt="n" in
your plotting function call, and then add your own axis using the axis()
function (see ?axis).
HTH,
Jim
James W.
2009 Jun 17
0
nls with weights
Hi there,
I don't have much experience with fitting at all and I'd like to get
some advice how to use the "weights"-argument with nls correctly.
I have created some data with a sigmoidal curve shape. Each y-Value was
generated by the mean of three values. A standard deviation was
calculated too.
Now, I'd like to weight the data points respective to its standard
2005 Feb 24
4
r: functions
hi all
i have a function that uses two inputs, say xdata and ydata. An example
is the following,
simple1<-function(xdata,ydata)
{
ofit<-lm(ydata~xdata)
list(ofit)
}
say i use arbitray number for xdata and ydata such that
D =
x1 x2 y
1 1 10
2 6 6
3 10 7
x<-D[,1:2]
and
y<-D[,3]
if one uses these inputs and rund the program we get the following:
>simple(xdata=x,ydata=y)
2017 May 16
0
[bug] droplevels() also drop object attributes (comment…)
>>>>> Serge Bibauw <sbibauw at gmail.com>
>>>>> on Mon, 15 May 2017 11:59:32 -0400 writes:
> Hi,
> Just reporting a small bug? not really a big deal, but I don?t think that is intended: droplevels()?also drops all object?s attributes.
Yes. The help page for droplevels (or the simple definition of
'droplevels.factor') clearly
2008 Dec 18
1
using jackknife in linear models
Hi R-experts,
I want to use the jackknife function from the bootstrap package onto a
linear model.
I can't figure out how to do that. The manual says the following:
# To jackknife functions of more complex data structures,
# write theta so that its argument x
# is the set of observation numbers
# and simply pass as data to jackknife the vector 1,2,..n.
# For example, to jackknife
#
2012 Dec 27
2
Bootstrap
Hola, buenas tardes
estoy intentando hacer un bootstrap de un modelo, pero me da el siguiente
error:
"Error in FUN(newX[, i], ...) :
unused argument(s) (list(age = c(33, 47, 49, 56, 60, 64, 64, 66, 68, 69,
71, 71, 72, 73, 74, 75, 75, 76, 78, 81, 83, 83, 36, 43, 46, 47, 49, 49, 51,
51, 52, 52, 53, 54, 54, 54, 55, 56, 56, 57, 57, 58, 58, 58, 58, 59, 59, 60,
61, 62, 63, 64, 65, 65, 66, 66,
2012 Sep 13
1
[LLVMdev] Parsing C++ template parameters using cindex.py
Hi,
I am parsing a C++ file using cindex.py and want to get the template
parameters to a specific node. However, the tree seems to be different
depending on if the template parameter is a struct/class or a simple
type such as int or float. In the first case the template type is
appended as a child to the VAR_DECL node (the TYPE_REF node seen in
the example below), but this is not the case with
2008 Sep 10
3
writing simple function through script
Hi all,
I try to write a simple function in a script. The script is as follows
yo<-function(Xdata)
{
n<-length(Xdata[,1])
Lgm<-nls(formula=LgmFormula,
data=Xdata,
start=list(a=1500,b=0.1),weights=Xdata$Qe)
return(Lgm)
}
After the execution of the script, when I call the function yo on data
called NC60.DATA I get an error.
#yo(NC60.DATA)
Erreur dans eval(expr, envir, enclos)
2004 Apr 15
0
Registering Asterisk to Lucent's MVAM Gatekeeper
Hi there,
I am trying to register asterisk to a Lucent's MVAM GK. It is not
registering to the GK with both h323 channels(chan_h323 and oh323).
The problem is that if I set the GK(in asterisk) through the GK's IP, the GK
answers with GCF without it's GK ID, and after that it does not answer to the
RRQ, because the RRQ message has no GK ID.
And when I set the GK through
2009 Jul 13
0
Partial Correlation
Why do we get Partial correlation values greater than 1?
I have used the default function pcor.mat :--
I have manipulated the default pcor.mat function a bit so ignore tha
variables corr_type,element1_in_no,element2_in_no,P.Please ignore the
?pairwise? section and have a look at athe ?listwise ? part i.e else part.
*pcor.mat <-
2008 Jun 24
2
persp plot
I have a set of data in the form
x1, y1, z1
x1, y2, z2
...
x1, yN, zN
x2, y1, z(N+1)
x2, y2, z(N+2)
...
x2, yN, z(2N)
...and so on...
xM, yN, val(M*N)
I have been trying to figure out how to get R to use this data in a
persp plot. So far the only thing that I can figure out to do is to
break the data file into three different files. The first file
contains the x-coordinate data:
x1
x2
2006 Jun 12
1
r's optim vs. matlab's fminsearch
Hi,
I'm having a problem converting a Matlab program into R. The R code works
almost all the time, but about 4% of the time R's optim function gets stuck
on a local minimum whereas matlab's fminsearch function does not (or at
least fminsearch finds a better minimum than optim). My understanding is
that both functions default to Nelder-Mead optimization, but what's
different about
2020 Mar 02
2
Should rint and nearbyint be always constrained?
Hi everyone,
According to the current design an intrinsic call that depends on current
floating point environment (for example, rounding mode) or change it (for
example by raising FP exceptions) is represented by constrained intrinsics.
The latter have attached metadata that provide info about current FP
environment and have attribute `IntrInaccessibleMemOnly` that helps keeping
order of
2012 Feb 11
1
object not found - Can not figure out why I get this error: Error in NROW(yCoordinatesOfLines) : object 'low' not found
Hi,
I have been using R for over a year now. I am a very happy user. Thank you
for making this happen.
This is my first question to this list.
I trying to add some functions to quantmod that would enable me to draw
arbitrary lines and text and make sure they are redrawn. I have created
following function:
require(quantmod)
# Add horizontal line to graph produced by quantmod::chart_Series()
2012 Oct 22
2
[LLVMdev] Section specialization & COFF.
On 20/10/12 03:15, Michael Spencer wrote:
> On Fri, Oct 19, 2012 at 2:55 AM, r4start <r4start at gmail.com> wrote:
>> Hi all.
>>
>> While compiling next code
>> @A = weak unnamed_addr constant { i32, i32, i32 } { i32 0, i32 0, i32 0 },
>> section ".data"
>> was discovered that llc ignores weak linkage if we emit it in COFF object.
>>
2009 Jun 25
2
Error: system is computationally singular: reciprocal condition number
I get this error while computing partial correlation.
*Error in solve.default(Szz) :
system is computationally singular: reciprocal condition number =
4.90109e-18*
Why is it?Can anyone give me some idea ,how do i get rid it it?
This is the function i use for calculating partial correlation.
pcor.mat <- function(x,y,z,method="p",na.rm=T){
x <- c(x)
y <- c(y)
2018 Jan 14
0
Volume can not write to data if this volume quota limits capacity and mount itself volume on arm64(aarch64) architecture
Thanks for reading this email?I found a problem while using Glusterfs?
First?I created a Distributed Dispersed volume on three nodes?and Limit the volume capacity use quota command?this volume is auto mounted on /run/gluster/VOLUME_NAME. This volume can be read and written normally?
After, I manually mounted the volume in another path to provide data storage of SAMBA and ISCSI services, after