Displaying 5 results from an estimated 5 matches for "cls2".
Did you mean:
cls
2006 Apr 14
3
The object argument of NextMethod.
...nt of NexthMethod be used?
In the following example, weather object argument is used will not
affects the result.
###
foo=function(x) {UseMethod("foo")}
foo.cls1=function(x)
{
x=x+1;class(x)<-"ncls"
NextMethod()
}
foo.ncls=function(x)
{
cat("ncls\n")
}
foo.cls2=function(x)
{
cat("cls2\n");print(x)
}
a=1;class(a)=c("cls1","cls2")
> foo(a)
cls2
[1] 2
attr(,"class")
[1] "ncls"
###
> foo=function(x) {UseMethod("foo")}
>
> foo.cls1=function(x)
+ {
+ x=x+1;class(x)<-"ncls"...
2013 Sep 06
1
directives to explicitely exclude objects from import into namespaces
...rtFrom(<pkg>, <obj1>, <obj2>,....)
## exclude <obj1>, <obj2>, ... again from the previous namespace import
## and, similarly,
notimportMethodsFrom(<pkg>, <meth1>, <meth2>,....)
notimportClassesFrom(<pkg>, <cls1>, <cls2>,....)
in the NAMESPACE file?
Otherwise the list of object, methods, classes to be explicitely imported
(in my case) got very long (and hence hard to maintain) -- much longer
than the list of items to be excluded from an import.
Or have I overseen some obvious, easier way to achieve this?
Be...
2012 Mar 31
3
clear console
hi,
I use R - 2.15(32bit), and want to make a code to clear a console.
Actually, I used to run following code to do that but after update the
version of R from 2.14 to 2.15, it doesn't work.
cls <- function (t) {
require(RDCOMClient)
wsh <- COMCreate("Wscript.Shell")
wsh$SendKeys("\f")
invisible(wsh)
}
cls()
or
cls <-
2004 May 11
0
Question about predict.multinom()
Hello,
This is the fitted model:
> fit
Call:
multinom(formula = resp ~ pred$cls + pred$smoke)
Coefficients:
(Intercept) pred$cls2 pred$cls3 pred$cls4 pred$cls5 pred$smoke2 pred$smoke3
Proteinuria -1.140520 0.1616644 0.05554898 -0.01584927 0.02574805 -0.4057245 -0.2898425
Hypertension -2.691215 -0.3699690 -0.22582107 0.01615898 0.26318005 0.1239051 0.2413282
Both -2.285950 -0.4473108 -0.16212932 -0...
2008 Jan 27
2
VPN in China for our server [OT?]
We are setting up a new server (prefer centos4 vs 5) what should we do for a
coporate vpn back to the US?
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- -
- Jason Pyeron PD Inc. http://www.pdinc.us -
- Sr. Consultant 10 West 24th Street #100 -
- +1 (443) 269-1555 x333