Displaying 20 results from an estimated 5000 matches similar to: "more about outer"
2010 Apr 16
3
run R script from Excel VBA
I wrote a R script say called computeCovarMatrix.R and i want to call and
run this piece from Excel visual basic. does anyone know how to do that?
thanks,
KZ
[[alternative HTML version deleted]]
2001 Sep 23
1
outer
i cannot cajole outer in doing what i want it to do.
i hav a function only defined for scalars
fun(n,k)
and i want to do
outer(1:5,1:5,function(x,y) fun(x,y))
(i know this is written somewhat clumsy)
to get an array with the values of fun
to use it as an input for image
this does not work since
outer assumes then fun works on arrays elementwise.
what is the easiest way of getting what i
2000 Feb 25
1
r-excel interface code
some of you might be interested.
i just uploaded the first release of my
r-excel interface package to CRAN.
it is in
contributed extensions
nonstandard extensions
erich neuwirth
--
Erich Neuwirth, Computer Supported Didactics Working Group
Visit our SunSITE at http://sunsite.univie.ac.at
Phone: +43-1-4277-38624 Fax: +43-1-4277-9386
2000 Feb 25
1
r-excel interface code
some of you might be interested.
i just uploaded the first release of my
r-excel interface package to CRAN.
it is in
contributed extensions
nonstandard extensions
erich neuwirth
--
Erich Neuwirth, Computer Supported Didactics Working Group
Visit our SunSITE at http://sunsite.univie.ac.at
Phone: +43-1-4277-38624 Fax: +43-1-4277-9386
2010 Feb 23
5
export tables to Excel files
Dear R users,
I've just posted a similar question about Illustrator.
This time I would like to export the results of my statistic tables and
my dataframes into Excel files.
Up to now I've used write.csv(), but I have to resave every file in .xls
in Excel.
I would like to know if there is a function or package to export
directly into *.xls.
I have found xlsReadWrite which would be
2006 Sep 01
3
Date conversion with as.POSIXct and as.POSIXlt (PR#9196)
Full_Name: Erich Neuwirth
Version: 2.3.1
OS: Windows XP, Linux
Submission from: (NULL) (131.130.135.167)
Converting Sys.Date() to a POSIX compliant time type in different ways
produces inconsistent results:
> Sys.date()
[1] "2006-09-01"
> as.POSIXct(Sys.Date())
[1] "2006-09-01 02:00:00 CEST"
> as.POSIXlt(Sys.Date())
[1] "2006-09-01"
>
2000 Mar 15
2
headers needed in gcc
i am working my way to create a stdin-stdout version of R
i am not a gcc configuration expert.
currently, i am missing
#include <sys/types.h>
# include <sys/socket.h>
# include <netinet/in.h>
# include <netinet/tcp.h>
#include "sock.h"
as far as i understand my system,
these header files shpuld be in
/usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.1/include
2008 Feb 13
2
apply on large arrays
I have a big contingency table, approximately of size 60*2*500*500,
and I need to count the number of cells containing a count of 1 for each
of the factors values defining the first dimension.
Here is my attempt:
tab1<-with(pisa1,table(CNT,GENDER,ISCOF,ISCOM))
tab2<-apply(tab1,1:4,function(x)ifelse(sum(x)==1,1,0))
tab3<-apply(tab2,1,sum)
Computing tab2 is very slow.
Is there a faster
2009 Sep 22
4
Evaluating expresssions as parameter values
I need to play games with an expression similar to the following one:
print(xyplot(DepVar ~ Group|Covar, groups=Othergroup,
data=mydf, pch = 18 ,main="Testcase",auto.key = TRUE))
The problem is that the formula argument (the first argument)
an the groups argument are passed over from another program as strings.
The formula argument does not pose problems,
I can do
2004 Apr 19
3
New unique name
In some languages there is a function
gensym()
which returns a new unique name (in the current environment).
This is quite helpful when one has to do temporary assignments.
I could not find such a function in R.
Is there one?
--
Erich Neuwirth, Computer Supported Didactics Working Group
Visit our SunSITE at http://sunsite.univie.ac.at
Phone: +43-1-4277-38624 Fax: +43-1-4277-9386
2000 Jun 19
1
outer problem
why does teh following code not work?
a<-rnorm(50)
dim(a)<-c(10,5)
mycov<-function(mat,i,j){
sum((mat[,i]-mean(mat[,i]))*(mat[,j]-mean(mat[,j])))
}
covmat<-function(X){
outer(1:dim(X)[2],1:dim(X)[2],function(v1,v2){mycov(X,v1,v2)})}
from what i know
covmat(a) should give the covariance matrix of a, but it gives a matrix
with
constant
2004 Jun 17
4
R help in Firefox on Windows XP
I had to reinstall my machine, so I installed Firefox 0.9 as browser
I am using WinXP and R 1.9.1 beta.
Now search in R html help does not work.
I checked that the Java VM is working correctlt, Sun's test site says
my installation is OK.
Firefoxalso tells me that
Applet Searchengine loaded
Applet Searchengine started
it just does not find anything.
Does anybody know how to solve this?
Erich
2001 Nov 12
3
histogram question
hist(rbinom(1000,10,0.5),col=2,xlim=c(0,10),ylim=c(0,300))
gives a histogram with "touching bars"
hist(rbinom(100000,10,0.5),col=2,xlim=c(0,10),ylim=c(0,30000))
gives a histogram with space between the bars.
is there a way to control the space betweent he bars easily?
--
Erich Neuwirth, Computer Supported Didactics Working Group
Visit our SunSITE at http://sunsite.univie.ac.at
2004 Sep 08
4
factor always have type integer
typeof applied to a factor always seems to return "integer",
independently of the type of the levels.
This has a strange side effect.
When a variable is "imported" into a data frame,
its type changes.
character variables automatically are converted
to factors when imported into data frames.
Here is an example:
> v1<-1:3
>
2009 Nov 07
2
Rpad and R 2.10.0
I have problems with Rpad and R 2.10.0 (Windows XP and Windows 7,
browser is Firefox)
Just starting Rpad by
library(Rpad)
Rpad()
opens the browser and displays the
.html files and the .Rpad files in my home directory, but these
files do not have links and are not clickable.
Doing the same in R 2.9.2 gives clickable links in the browser.
Furthermore, in both cases an empty graphics window
2008 Apr 19
7
Re ad From EXCEL
Hello!!!
I have been read a much about as read data from Excel File, but I haven?t
found the necesary information to read the data.
Now, I can create a channel : channel <- odbcConnectExcel("file.xls") but I
don?t know as read the data??
I hope that you could help me. Thank you very much.
--
View this message in context:
2006 Apr 23
3
bivariate weighted kernel density estimator
Is there code for bivariate kernel density estimation?
For bivariate kernels there is
kde2d in MASS
kde2d.g in GRASS
KernSur in GenKern
(list probably incomplete)
but none of them seems to accept a weight parameter
(like density does since R 2.2.0)
--
Erich Neuwirth, University of Vienna
Faculty of Computer Science
Computer Supported Didactics Working Group
Visit our SunSITE at
2004 Jul 14
5
RGui Titlebar
In the windows version (RGui), is there a way to set
the text displayed in the titlebar of the R window?
When I have 2 instances of RGui running, it would be helpul
if the titlebar could help to understand which is which.
--
Erich Neuwirth, Computer Supported Didactics Working Group
Visit our SunSITE at http://sunsite.univie.ac.at
Phone: +43-1-4277-38624 Fax: +43-1-4277-9386
1999 Sep 29
1
date() in win version
when i do
print(date())
the output is
[1] "Wed Sep 29 09:13:04 1999\n"
ios it on purpose the the linfeed is
shown as abbreviation and not done?
--
Erich Neuwirth, Computer Supported Didactics Working Group
Visit our SunSITE at http://sunsite.univie.ac.at
Phone: +43-1-4277-38624 Fax: +43-1-4277-9386
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
2005 Dec 22
1
Hiding a function from ls()
I need to define a small helper function
which should not be listed by ls().
What is the best and cleanest way of achieving this?
--
Erich Neuwirth, University of Vienna
Faculty of Computer Science
Computer Supported Didactics Working Group
Visit our SunSITE at http://sunsite.univie.ac.at
Phone: +43-1-4277-38624 Fax: +43-1-4277-9386