Displaying 20 results from an estimated 120 matches similar to: "Error in Calling C++ function from R!!!"
2007 Oct 13
2
the use of the .C function
Dear All,
could someone please shed some light on the use of the .C or .Fortran function:
I am trying load and running on R the following function
// psi.cpp -- psi function for real arguments.
// Algorithms and coefficient values from "Computation of Special
// Functions", Zhang and Jin, John Wiley and Sons, 1996.
//
// (C) 2003, C. Bond. All rights reserved.
//
//
2005 Apr 11
4
How to suppress the printing of warnings (Windows)?
Dear all,
I'm a newbie in R. I am running simulations using a fixed bandwidth in nonparametric regressions, sending all the output to a file myoutput.txt using sink("myoutput.txt"), & R is printing all warnings by the end of the simulation on the file. I know the source of the problem & can take care of it. However, finding a 50 MB file (where all the output is printed, e.g.
2009 Jan 09
4
Extracting File Basename without Extension
Dear all,
The basename() function returns the extension also:
> myfile <- "path1/path2/myoutput.txt"
> basename(myfile)
[1] "myoutput.txt"
Is there any other function where it just returns
plain base:
"myoutput"
i.e. without 'txt'
- Gundala Viswanath
Jakarta - Indonesia
2015 Dec 11
3
For integer vectors, `as(x, "numeric")` has no effect.
>>>>> Martin Maechler <maechler at stat.math.ethz.ch>
>>>>> on Tue, 8 Dec 2015 15:25:21 +0100 writes:
>>>>> John Chambers <jmc at r-project.org>
>>>>> on Mon, 7 Dec 2015 16:05:59 -0800 writes:
>> We do need an explicit method here, I think.
>> The issue is that as() uses methods for the generic
2012 Jan 29
0
Using influence plots and obtaining id numbers
I am a novice R user, and I am having difficulty understanding R's influence
plots.
I am trying to remove outliers from a particular variable, "sib." I am able
to generate influence plots and further outlier information such as below
(which is a shortened example). For my analyses, I end up excluding the
points R refers to, 7, 18, 26, and 105. However, my question is, how can I
2015 Dec 12
2
For integer vectors, `as(x, "numeric")` has no effect.
>>>>> John Chambers <jmc at r-project.org>
>>>>> on Fri, 11 Dec 2015 10:11:05 -0800 writes:
> Somehow, the most obvious fixes are always back-incompatible these days.
> The example intrigued me, so I looked into it a bit (should have been doing something else, but ....)
> You're right that this is the proverbial
2015 Dec 08
2
For integer vectors, `as(x, "numeric")` has no effect.
We do need an explicit method here, I think.
The issue is that as() uses methods for the generic function coerce() but cannot use inheritance in the usual way (if it did, you would be immediately back with no change, since "integer" inherits from "numeric").
Copying in the general method for coercing to "numeric" as an explicit method for "integer" gives
2015 Dec 19
2
For integer vectors, `as(x, "numeric")` has no effect.
As I tried to say on Dec. 11, there are two levels of "fix":
1. The fix to the complaint in the OP's subject heading is to conform to the default third argument, strict=TRUE: as(1L, "numeric") == 1.0
This generates some incompatibilities, as for classes that extend "numeric". But still leaves class(1.0) "numeric" and typeof(1.0) "double".
2006 Mar 14
2
R CMD BATCH w/o inputs?
dear R wizards---I must be standing on the line (German
translation---this must be obvious). This is probably embarrassingly
obvious to anyone, except to me right now. maybe it is late.
I would like to run my R code in batch, but not see the R compilations
and my R source code---I just want to see the same output that I would
see if I ran source("i.R"), but direct it to a file. I can
2010 Mar 12
1
problem with parse(text=quote(name))
Calling parse(text=quote(name)) or text=as.name("name")
makes parse() prompt for input from the command line
and then it returns a parse of the initial characters
of 'name' (depending on how many characters were typed
at the prompt). E.g.,
> parse(text=quote(myName))
?1/3
expression(myN)
attr(,"srcfile")
<text>
>
2008 Jan 04
1
redirect plot device automatically
Dear all,
Every time that I need to generate I plot output as figure I use something like
png("myoutput.png")
plot(rnorm(100)*1.0,col=4)
points(rnorm(100)*0.5,col=2,pch=0)
dev.off()
But now I need to generate a lot of outputs and it could not be done in a for looping where I can change the names. So I would like to know if is there a way of I automatically redirect the output from my
2013 May 21
1
making makepredictcall() work
Dear All,
I'm interested in creating a function similar to ns() from package
splines that can be passed in a model formula. The idea is to produce
"safe" predictions from a model using this function. As I have seen, to
do this I need to use makepredictcall(). Consider the following toy example:
myns <- function (x, df = NULL, knots = NULL, intercept = FALSE,
Boundary.knots =
2015 Dec 11
0
For integer vectors, `as(x, "numeric")` has no effect.
Somehow, the most obvious fixes are always back-incompatible these days.
The example intrigued me, so I looked into it a bit (should have been doing something else, but ....)
You're right that this is the proverbial thin-edge-of-the-wedge.
The problem is in setDataPart(), which will be called whenever a class extends one of the vector types.
It does
as(value, dataClass)
The key point is
2007 Jul 12
3
eMail results out of R
Hi everyone,
I did my homework and read the posting guideline :-)
I want to eMail the results of a computing automatically. So I get the results (the parameters of a garch process) and I want to eMail them to another person. How can I do that?
Thx
______________________________
Thomas Schwander
MVV Energie
Konzern-Risikocontrolling
Telefon 0621 - 290-3115
Telefax 0621 - 290-3664
E-Mail:
2015 Dec 19
0
For integer vectors, `as(x, "numeric")` has no effect.
>>>>> Martin Maechler <maechler at stat.math.ethz.ch>
>>>>> on Sat, 12 Dec 2015 10:32:51 +0100 writes:
>>>>> John Chambers <jmc at r-project.org>
>>>>> on Fri, 11 Dec 2015 10:11:05 -0800 writes:
>> Somehow, the most obvious fixes are always back-incompatible these days.
>> The example intrigued
2015 Dec 26
0
[Bioc-devel] For integer vectors, `as(x, "numeric")` has no effect.
Or maybe the "right" concept is that "numeric" is a virtual class
with 3 subclasses: "complex", "double", and "integer". Anyway it's
probably too late for implementing the "right" concept so it doesn't
really matter.
Thanks Martin for offering to fix the as(1L, "numeric") bug. Very
much appreciated. I guess that means
1999 Jan 28
0
compiling R for SGI IRIX
When I attempt to compile R, I immediately get the error:
'make: file `Makefile' line 49: bad character & (octal 46)
*** Error code 1 (bu21)'
I have looked at line 49 of each of the makefiles and none of them seem
to contain this character.
Any suggestions?
--
Cynthia Gibas
cindy at mothership.champaign.il.us
2006 May 17
2
batch mode and remote destination
Whats the reason that using a batch file can't be used with a remote
destination?
rsync --read-batch=foo /mysrc remote:/dest
gives
remote destination is not allowed with --read-batch
I need to push the same set of files to about 20 servers and because of
firewall rules, the 20 servers cannot pull from the central one.
Thanks
Kimo
2006 Jul 23
2
constructing a dataframe from a database of newspaper articles
I am hoping for some assistance with formatting a large text file which
consists of a series of individual records. Each record includes specific
labels/field names (a sample of 1 record (one of the longest ones) is
below - at end of post. What I want to do is reformat the data, so that
each individual record becomes a row (some cells will have a lot of text).
For example, the column
2008 Feb 29
1
write.csv +RMySQL request
Hello,
I am relatively new to R and learning its ins and outs. As part of a website I am building, I need to read and write csv files directly from an SQL database. Basically I want to convert R variables (dataframes) into CSV format, store them as another R variable (as a properly formatted text string suitable for csv reading) and then send this to one row in a database.
The SQL part is fine,