Displaying 9 results from an estimated 9 matches for "isnumeric".
Did you mean:
is_numeric
2007 Oct 19
2
string.prototype.isNumeric
Hey all,
Just had a need for this, wondering if it is a candidate for inclusion as it
is only a single line and I can''t seem to spot any other way of acheiving
the same functionality in less code.
String.prototype.isNumeric = function() { return (this.match(/^\d+$/) !=
null); }
I used it in the context of:
Event.observe(el,''keypress'',function (e) { if (!this.value.isNumeric())
Event.stop(); });
Admittedly, it doesn''t cater for decimal points and other locales, but it''s
a start?
The...
2012 Jan 03
1
returning information from functions via attributes rather than return list
...n Do!")
} else {
scale(x, center = TRUE, scale = standardize)
}
}
rdf <- get_all_vars(formula(model), model$model) #raw data frame
t <- terms(model)
tl <- attr(t, "term.labels")
tmdc <- attr(t, "dataClasses") ##term model data classes
isNumeric <- names(tmdc)[ which(tmdc %in% c("numeric"))]
isFac <- names(tmdc)[ which(tmdc %in% c("factor"))]
if (tmdc[1] != "numeric") stop("Sorry, DV not a single numeric column")
##Build "nc", a vector of variable names that "need centeri...
2007 Aug 22
1
"subscript out of bounds" Error in predict.naivebayes
...(1:9319[[4L]], ...) : subscript out of bounds
# Here's what traceback() returns
10: FUN(1:9319[[4L]], ...)
9: lapply(X, FUN, ...)
8: sapply(1:nattribs, function(v) {
nd <- ndata[v]
if (is.na(nd))
rep(1, length(object$apriori))
else {
prob <- if (isnumeric[v]) {
msd <- object$tables[[v]]
dnorm(nd, msd[, 1], msd[, 2])
}
else object$tables[[v]][, nd]
prob[prob == 0] <- threshold
prob
}
})
7: log(sapply(1:nattribs, function(v) {
nd <- ndata[v]
if (...
2023 May 19
1
range() for Date and POSIXct could respect `finite = TRUE`
...>> >> To keep such methods all internally consistent with
> >> >> range.default(), I could envision something like this
> >> >>
> >> >>
> >> >> .rangeNum <- function(..., na.rm = FALSE, finite = FALSE,
> isNumeric)
> >> >> {
> >> >> x <- c(..., recursive = TRUE)
> >> >> if(isNumeric(x)) {
> >> >> if(finite) x <- x[is.finite(x)]
> >> >> else if(na.rm) x <- x[!is.na(x)]
> >> >> c(min(x), m...
2005 Jul 20
2
unable to call R t-test from Java
...an", funArgs);
if(value != null)
{
interp.show(value );
System.err.println("\r\n");
}
}
/**
* let's run some tests on the vector passed in and see what R thinks I'm handing it
*
* it returns
* isnumeric: false
* mode: list
* length: 2
*/
public static void runTestsOnOmegahatNumeric(REvaluator e, ROmegahatInterpreter interp)
{
Object[] funArgs = new Object[1];
// given argument is not numeric or logical
org.omegahat.Envir...
2010 Feb 23
1
VB IsDate/IsNumber: Localisation does not work
Hi everybody,
I started testing a (really large self written) VB appllication under Wine and was surprised, that a lot works out of the box (nearly...) - Great Work!
But I have a few errors I need some advice on: In the application are lot of tests if entered data are numbers or dates.
These test do not work, It looks like the locale (number and date)formats are not used in this functions. My
2008 Apr 05
2
Adding a Matrix Exponentiation Operator
...ALSXP;
SETCAR(args, coerceVector(CAR(args), mode));
x = CAR(args);
y = CADR(args);
dims = getAttrib(x, R_DimSymbol);
nrows = INTEGER(dims)[0];
ncols = INTEGER(dims)[1];
if (nrows != ncols)
error(_("can only raise square matrix to power"));
if (!isNumeric(y))
error(_("exponent must be a scalar integer"));
e = asInteger(y);
if (e < -1)
error(_("exponent must be >= -1"));
else if (e == 1)
return x;
else if (e == -1) { /* return matrix inverse via solve() */
SEXP p1, p2...
2014 Jul 25
0
Wine release 1.7.23
...es specified in arguments.
msi: Add more feature state tests.
Sebastian Lackner (1):
wine.inf: Fix timezone information for Israel Standard Time.
Shuai Meng (3):
vbscript: Implemented Abs.
vbscript/tests: Added tests for the subtype of TypeName.
vbscript: Implemented IsNumeric.
Stefan D?singer (6):
ddraw: Add validation to SetPriority / GetPriority.
ddraw/tests: Add a test for IDirectDrawSurface7::SetPriority.
wined3d: Remove wined3d_surface_set/get_priority.
wined3d: Remove wined3d_volume_set/get_priority.
wined3d: Remove wined3d_buffer_se...
2016 May 03
9
[Bug 95251] New: vdpau decoder capabilities: not supported
https://bugs.freedesktop.org/show_bug.cgi?id=95251
Bug ID: 95251
Summary: vdpau decoder capabilities: not supported
Product: Mesa
Version: 11.2
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/DRI/nouveau
Assignee: nouveau at