Displaying 20 results from an estimated 107 matches for "sigsig".
2004 Sep 15
7
Splitting vector into individual elements
...- function(x) {
expr <- cat(x, sep = ",")
return(parse(text = expr))
}
silver.bullet.try2 <- function(x) {
expr <- expression(cat(x, sep = ","))
return(eval(expr))
}
----------------------------------------------------------
SIGSIG -- signature too long (core dumped)
2005 Nov 12
2
sibling list element reference during list definition
...use
of a temporary variable?
The following doesn't work but it's the general idea.
> list(value = 2, plusplus = $value+1)
such that the following would be the output from str()
List of 2
$ value : num 2
$ plusplus: num 3
----------------------------------------------------------
SIGSIG -- signature too long (core dumped)
2004 Dec 31
4
install.packages() for local source file
...pkg, lib = Sys.getenv("R_LIBS"))
> version
_
platform sparc-sun-solaris2.9
arch sparc
os solaris2.9
system sparc, solaris2.9
status
major 1
minor 9.0
year 2004
month 04
day 12
language R
----------------------------------------------------------
SIGSIG -- signature too long (core dumped)
2006 May 03
3
sprintf question
...)
> sprintf("%9.2f\t%d\t%d\t%8.3f", v[3], v[1], v[2], v[4])
[1] " -1.20\t1\t2\t 0.160"
Essentially, desired effect would be something like:
> sprintf("%9.2f\t%d\t%d\t%8.3f", v[iv]) # wish it worked
----------------------------------------------------------
SIGSIG -- signature too long (core dumped)
2004 Jul 07
1
NAMESPACE and tests for unexported functions
...hing so
that 'R CMD CHECK pkg' won't crash when it encounters
a test case for an internal function. I don't want
someone using the package to call the function, but the
package itself should be able to see its own contents.
----------------------------------------------------------
SIGSIG -- signature too long (core dumped)
2004 Aug 25
2
[Q] Apply Function Over Multiple Array Margins
...xlim = c(min(x), max(x)),
ylim = c(0, max(y)));
box();
axis(1, min(x):max(x))
axis(2, seq(0, max(y), by = 5))
axis(3, labels = FALSE)
axis(4, labels = FALSE)
apply(y, 1, drawLines)
}
plotData(x, t(y))
----------------------------------------------------------
SIGSIG -- signature too long (core dumped)
2004 Sep 17
1
Confused about specifying plot colors as RGB values
...l = colnames.col[1], type = "l")
matlines(offsets, col = colnames.col[-1])
# Displays a ??yellow?? line
X11()
matplot(baseline, col = as.matrix(colnames.rgb[,1]), type = "l")
matlines(offsets, col = colnames.rgb[,-1])
----------------------------------------------------------
SIGSIG -- signature too long (core dumped)
2005 Jul 20
2
Turning off return warning messages.
Dear All,
Is there a way I can turn off the following warning message for using multi-argument returns?
multi-argument returns are deprecated in: return(p1, p2, p3, p4)
Steve.
**************************************************************************************
Steve Su (s.su@qut.edu.au)
Postdoctoral fellow
Faculty of Business
Queensland University of Technology
Postal
2006 Apr 03
1
do.call method within namespace
...s function call:
do.call("foo", list(1, 2, 3))
didn't work. Nor did the following:
do.call("mypackage::foo", list(1, 2, 3))
There some other means to do this without loading the
package via library method?
----------------------------------------------------------
SIGSIG -- signature too long (core dumped)
2006 Apr 06
1
Indexing With List Of Vectors (Replacement)
...[7,] 8 8 8 8 8
Looking for a way to do this generically such that 'idx'
with 'n' length can be used to index n-dimensional arrays.
b[<<<translate 'idx' to array indices>>>] <- a
----------------------------------------------------------
SIGSIG -- signature too long (core dumped)
2006 Apr 12
1
S4 method dispatch matrixOrArray
...ethod("foo",
signature(A = "matrixOrArray"),
function(A, ...) {
cat("A =", A, "\n")
})
## Test
foo(1:4)
foo(matrix(1:4, 1, 4))
foo(array(1:4, c(1, 4, 1)))
----------------------------------------------------------
SIGSIG -- signature too long (core dumped)
2005 Oct 07
1
sscanf equivalent
...e to parse data from 'datalines'
using sub and strsplit methods but it was woefully slower
and more complex than using scan method. What is desired
is a means of invoking method like scan but with existing
data instead of filename.
----------------------------------------------------------
SIGSIG -- signature too long (core dumped)
2006 Mar 29
2
Recall for parent
...e recursive code:
alwaysEven <- function(x) {
handleOdd <- function(x) {
alwaysEven(x-1) # use Recall-like here
}
return(if (x %% 2) handleOdd(x) else x)
}
any2even <- alwaysEven
rm(alwaysEven)
any2even(3)
----------------------------------------------------------
SIGSIG -- signature too long (core dumped)
2005 Feb 14
2
Test Tools
Anyone aware of tools available that can provide complexity
metrics and/or code coverage analysis for R source?
----------------------------------------------------------
SIGSIG -- signature too long (core dumped)
2005 Feb 23
1
Graphics devices file[name] argument
...> version
_
platform sparc-sun-solaris2.9
arch sparc
os solaris2.9
system sparc, solaris2.9
status
major 1
minor 9.0
year 2004
month 04
day 12
language R
Also verified against R 2.0.1 on Windows
----------------------------------------------------------
SIGSIG -- signature too long (core dumped)
2005 Jul 26
1
Error registering finalizer
...SET_COUNT(vntData, vntAttr);
>>>>> Problem comes here <<<<<<
R_RegisterCFinalizer(vntData, (R_CFinalizer_t)ProbesetGE_finalizer);
UNPROTECT(n);
return vntObj;
}
Thanks for any pointers...
----------------------------------------------------------
SIGSIG -- signature too long (core dumped)
2005 Nov 14
1
Package manpage DCF hooks
...ould provide a template
file "<pkgname>-package.Rd.in" and during build, the
DCF information could be substituted appropriately and
"<pkgname>-package.Rd" would be output.
see also:
promptPackage method
----------------------------------------------------------
SIGSIG -- signature too long (core dumped)
2005 Feb 11
1
Canonical S4 Method signature
...uot;\n")
standardGeneric("foo")
})
One other alternative might be to just use dots for the
function argument and assign them names internally.
Similar functions in some package? Suggestions (besides
not using S4)?
TIA
----------------------------------------------------------
SIGSIG -- signature too long (core dumped)
2005 Jul 19
1
S4 Dispatching
...\n")
str(mydata)
})
> version
_
platform powerpc-apple-darwin7.9.0
arch powerpc
os darwin7.9.0
system powerpc, darwin7.9.0
status
major 2
minor 1.1
year 2005
month 06
day 20
language R
----------------------------------------------------------
SIGSIG -- signature too long (core dumped)
2009 Jan 15
1
[Q] R CMD check signals error on code that works from UI
...anEx(); nameEx(""
Execution halted
Yet on console, it provides the expected:
name: aaa upper: AAA
name: bbb upper: BBB
name: ccc upper: CCC
How do I work around this for manpage?
----------------------------------------------------------
SIGSIG -- signature too long (core dumped)