I want to use R to run dos commands (either by create batch files or
using shell())and I need to write double quotes on the file (or shell
command). As an easier example, lets take:
> print("hello 'hello' hello")
[1] "hello 'hello' hello"
Lets say instead of the above, I wanted:
"hello "hello" h
Dear useRs,
Trying to replace the diagonal of a matrix is not working for me. I
want a matrix with .6 on the diag and .4 elsewhere. The following
code looks like it should work--when I lookk at mps and idx they look
how I want them too--but it only replaces the first element, not each
element on
Using R in batch mode should work on both Windows and Linux:
R CMD BATCH (assuming that R.exe is in your path)
Even without R's location in your path, you could issue the following
command at the prompt (in windows):
"c:\Program Files\R\R-2.3.1\bin\R.exe" CMD BATCH --vanilla --slave
i:\R_HOME\bat
to the folder where
> the rpm is downloaded to, type
> rpm -ivh R-2.3.1-1.fc5.x86_64.rpm will try to install and give you
> information on whats missing...
>
> Stefan Grosse
>
> roger bos schrieb:
> > I am looking for help install the x86_64 R Binary onto my FC5
>
I am looking for help install the x86_64 R Binary onto my FC5 machine. At
the risk of subjecting myself to tons of criticism, I must confess that I
don't know anything about Linux and I have never compiled R from source.
Therefore, I choose FC5 because I see that a 64-bit binary is already
availab
I need to save data in fixed-width format without headers and reading the
help archive leads me to believe that sprintf is pretty much the only way to
do this. My question is, is there anyway to change the output so the text
in each column is left justified instead of right justified? My code sam
I can't add much to your question, being a complete novice at
classification, but I have tried both randomForest and SVM and I get better
results from randomForest than SVM (even after tuning). randomForest is
also much, much faster. I just thought randomForest was a much better
algorithm, althou
I have a covariance matrix that is not positive semi-definite matrix and I
need it to be via some sort of adjustment. Is there any R routine or
package to help me do this?
Thanks, Roger
[[alternative HTML version deleted]]
__
R-help@stat.math.
Claire,
I know you emailed me a question earlier and I just haven't gotten around to
answering it. For both perl and rgui.exe (and rterm.exe) your path needs to
state the location of these files. (I am not sure about this, but after you
change the path you may even need to reboot for the change
Mike, may also want to check out Rpad. Its mainly used to delivery R
programs to other users via a web browser, so the other users don't need R
installed on their machine. If you make a nice HTML gui, the other users
don't even have to know R. Each user gets his own environment, so one
person's
I want to get a 64-bit machine/OS system so I can put 16Gb of RAM in it. As
first I assumed that I would have to use the 64-bit version of R to make use
of the 16Gb of RAM, which would mean that I would use the Linux version of
R. But I have heard many posters say they run the 32-bit version of R
With an older verion of R (I think 2.2.0) and an older version of Rpad I
used to use HTML(go, collapse=false) where go is list of objects returned by
a function and this worked great. Now that I have done some upgrading (to R
2.3.1 and Rpad 1.1.0) its not working right. I also get a warning when
++ courses 7 years ago--and haven't used it since. I have a better chance
of learning how to use Linux.
Thanks,
Roger
On 5/30/06, Duncan Murdoch <[EMAIL PROTECTED]> wrote:
>
> On 5/30/2006 2:18 PM, roger bos wrote:
> > I am today where Alastiar was back in August 2005. I
I am today where Alastiar was back in August 2005. I am considering buying
a 64 bit machine with 16GB of memory to run bigger objects in R, which
brougt me down the Linux path. The problem is that my company's IT staff
doesn't support Linux and this path was getting very bumpy for me, so I am
osc
These beliefs are very prevelant. The IT person for my group doesn't
beleieve in the concept of _free_ software and actually expects me to be
arrested some day for using R at work! All I can say is keep the faith.
On 5/19/06, J Dougherty <[EMAIL PROTECTED]> wrote:
>
> On Thursday 18 May 2006 14:
y)
>
> Residuals:
>
> *** caught bus error ***
> address 0x18, cause 'invalid alignment'
>
> Traceback:
> 1: sort(x, partial = unique(c(lo, hi)))
> 2: quantile.default(resid)
> 3: quantile(resid)
> 4: structure(quantile(resid), names = nam)
> 5: print.summary
I don't know if this is causing the error, by in your traceback I saw sort()
was used and sort now removes all the attributes when it sorts. I used to
use sort() to sort dates in character format and now it turns them into
integers and is breaking all my code. The problem with upgrading is your
n
While there is nothing about the r-project site that I would consider fancy,
it is pretty functional. I would be interested to hear more about what you
hope to accomplish by re-doing the web site. Fancy graphics may just slow
down the experience for those not on broadband. After all, the r-help
I like to use the RODBC package for doing this. Here is my code sample:
xls <- odbcConnectExcel(fname)
rawdata.temp <- sqlFetch(xls, "rawdata", max=2800)
close(xls)
fname is the full path to the file and "rawdata" is the name of the excel
sheet I want to import. I trie
This doesn't really have much to do with randomForest, but I run the
following code every few weeks to make sure all my packages are installed
and up to date. Then you don't have to fiddle with doing it one by one. In
case you haven't seen this; I got this code from someone else on this list.
x
I'm asking this question purely for my own benefit, not to try to correct
anyone. The procedure you refer to as "normalization" I have always heard
referred to as "standardization". Is the former the proper term? Also, you
say its not necessary given today's hardware, but isn't it beneficial to
gt; regards,
>
> mark+ \ ucsf
>
> On Mar 10, 2006, at 5:14 AM, roger bos wrote:
>
> > I never tried opening more than one instance of Rgui, but when I
> > wanted to run two jobs at the same time on one Win XP PC, I would run
> > one in Rgui and one in Rterm and I have n
I never tried opening more than one instance of Rgui, but when I wanted to
run two jobs at the same time on one Win XP PC, I would run one in Rgui and
one in Rterm and I have never had a problem with that setup. As above, when
I close my R session, I always say no to the save question.
HTH,
Roge
You could always use notepad, but there are better solutions. There are
many text editors which will send the commands to R for you and return the
results and also offer syntax highlighting. I like Tinn-R. Xemacs is
probably the best, but its hard to learn (IMHO) and I have not taken the
time to
I hesitate to reply since I don't know if this work in Mac, but on windows
Ctrl-L clears the screen, so its worth a try.
On 3/5/06, Will Terry <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I'm an R novice (and I'm making progress!).
>
> I'm getting sick of looking at all my old commands though! Ca
Where did you get a verion that was supposed to support 2.2.1? On the JGR
website it lists the different binaries for the different version of R and
the latest one I saw was 2.2.0.
http://stats.math.uni-augsburg.de/JGR/
On 3/6/06, Michael Kubovy <[EMAIL PROTECTED]> wrote:
>
> Dear r-helpers,
>
And of course using rm(...) to clean up objects you no longer need. No
amount of physical memory can save you from grossly inefficient code and
large memory leaks. For example, lets say I have a large testMat object
that I use time period. I loop though each month using for loops. Even
though t
broken a lot of code. So I decided to keep the `standard' predict
> behavior and to `hide' special predictions in an attribute. If the latter
> had been available from the beginning, I probably would have used the `type'
> approach.
>
> Cheers,
> David
>
>
Finally figured it out. You have to extract it from the attributes.
Tricky. Thanks anyway.
> attr(pred, "prob")[1:10,]
On 2/16/06, roger bos <[EMAIL PROTECTED]> wrote:
>
> I am using SVM to classify categorical data and I would like the
> probabilities i
I am using SVM to classify categorical data and I would like the
probabilities instead of the classification. ?predict.svm says that its
only enabled when you train the model with it enabled, so I did that, but it
didn't work. I can't even get it to work with iris. The help file shows
that proba
Rpad is supposed to, according to the server notes it comes with. I
coundn't get it to work, but that doesn't mean you can't. Do you have to go
with IIS? I tried for days to get Rpad to work with IIS and couldn't. So I
downloaded Apache and got it working within a few hours. It was the first
a
?scan is much faser. Also, read.table has a colClasses optional argument
which can be used to speed up the reading of large files significantly.
read.table has a pretty good help section well worth reading.
read.table(file, header = FALSE, sep = "", quote = "\"'", dec = ".",
Soren's suggestion is the right way to go provided you don't need all the
data all the time. Another thing to try is once the data is imported,
convert the numeric part of the data frame to a matrix, as calculations on a
matrix are much faster than calculations on a data frame.
I'm too lazy to co
Yeah, but I don't understand LaTeX at all. Can you point me to a good
beginners guide?
Thanks,
Roger
On 2/9/06, Barry Rowlingson <[EMAIL PROTECTED]> wrote:
>
> Tom Backer Johnsen wrote:
> > I have just started looking at R, and are getting more and more
> irritated
> > at myself for not having
Reza,
Yes, you will need Apache and Perl already installed, then follow the
install notes you linked to above. I tried for a long time to get it to
work with Microsoft IIS and could not for the life of me, but when I tried
it with Apache 2.0 it worked pretty easily. I have never set up a web
ser
Elvis advertises to this list quite regularly.
I took an S+ course offered by Insightful once. It was okay, but not
great. For the basics, the best thing is just to sit down with a book (S
Poetry comes to mind) and follow the examples. For more advanced stuff,
learn it as you go. I am.
On 2
ics
>Relocations stripped
>Executable
>Line numbers stripped
>Symbols stripped
> Application can handle large (>2GB) addresses
>32 bit word machine
>
I have always been using ebitbin to set the 3GB switch in the windows
binary, but version 2.2.1 has this set as default (which I verified using
dumpbin). However, when I generate junk data to fill up my memory and read
the memory usage using gc(), it seems that I am not getting as good results
wit
I haven't been able to figure that one out either, but I have a work
around. Lets say I have a table named roger_return that has a column named
datadate that is a smalldatetime. I can't get sqlSave to save to that
table, so I just save it to a new table, say roger_return2. Then I alter
the colum
I don't know german, but try z <<- whatever instead of just z <- whatever.
?"<<-"
On 1/24/06, Christian Hinz <[EMAIL PROTECTED]> wrote:
>
> Hello @all R-Help-User.
>
> I need a global variable in R. The variable ought to be known for every
> functions and subfunctions. It is only to comparison
s
full and then tells you how much memory was successfully used? I could try
writing it, but if someone has already done it, thats all the better!
Thanks,
Roger
On 1/25/06, Prof Brian Ripley <[EMAIL PROTECTED]> wrote:
>
> On Tue, 24 Jan 2006, roger bos wrote:
>
> > This ques
This question comes up a number of times what most people will tell you is
that even if you get all you data into R you won't be able to do anything
with it. By that I mean, you need about 3 or 4 times as much memory as the
size of your data object because R will need to create copies of it.
I ca
This highlights the hurdle we face in increasing R users. People often use
in their career software they learned in school and if we can't get the
schools to use R (even though it free) it makes it all the more difficult to
increase R usage in business and elsewhere. If a business person says he
One idea is to keep the variable names you want in a vector, say 'use' and
and get the indices using the match function:
match(use, names(df)
where use <- c("item1","item2",...)
You can then subset the data frame as follows:
newdf <- df[, match(use, names(df)]
HTH,
Roger
On 1/20/06, Chuck C
Read ?scan very carefully and play with the settings. What makes your file
difficult is that it is multi line, meaning that the headings have carriage
returns between them instead of being one line separated with spaces or tabs
or commas. Can you change the way the file is outputted? If not, you
I would like to replace all missing values (NAs) with zero like below--where
ever they may be--but some of the column classes are non-numeric so I get an
error:
> dim(temp)
[1] 699 313
> temp[is.na(temp)] <- 0
Error in as.Date.default(value) : do not know how to convert 'value' to
class "D
As far as generating a sudoku, it can't be too hard because I have a program
on my cell phone that does it with a size less than 325K. I don't know the
best way to generate these, but one way I was thinking of was starting with
a filled up one then randomize the columns and rows. Then make some of
As others have pointed out, since R is more of a programming language than a
statistical package, yes, it is _harder_ to learn. I would say its easier
to learn than C++, harder to learn than VBA, and on par with learning Java,
but that's all debatable.
One thing that makes R slightly more intimid
Clark,
I agree with Vitor that working in R might be easier, but it seems that you
are working in the excel VBA environment and there may be good reason why
you want to do so that we don't know about. If so, why use Rexcel function
to read the file into excel when you can use VBA code to open the
I am using lda to predict case (success / no success) using about 5 discrete
variables. If z is my model, I can get the coefficients of lda using z[[4]]
or I can just output the full summary for the model by typing 'z' into the
command line, but I don't see where it reports the intercept. In othe
John,
Your appendix on linear mixed models does look good and I look forward to
reading it, but its 24 pages and Jarretts entire guide is less than 8 pages,
so my simple I think he meant short!
Thanks,
Roger
On 11/8/05, John Fox <[EMAIL PROTECTED]> wrote:
>
> Dear Jarrett,
>
>
> > -Origina
005-10-25 at 08:51 -0400, roger bos wrote:
> > for example:
> > > a$tic[1:10]
> > [1] "AIR " "ABCB " "ABXA " "ACMR " "ADCT " "ADEX "
> > [7] "ABM " "AFCE " "AG " "ATG &quo
for example:
> a$tic[1:10]
[1] "AIR " "ABCB " "ABXA " "ACMR " "ADCT " "ADEX "
[7] "ABM " "AFCE " "AG " "ATG "
Can anyone please tell me how to strip the white spaces from a$tic?
Thanks,
Roger
[[alternative HTML version deleted]]
__
R-help@sta
t; versions (1.4) of both source and binary.
>
> Jarek
> \
> Jarek Tuszynski, PhD. o / \
> Science Applications International Corporation <\__,|
> (703) 676-4192 "> \
> [EMAIL PROTECTED] ` \
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMA
er a fairy
broad range of the simpler types of optimzation. I mentioned that R can do
QPs , LPs, and integer programming, among others.
Thanks,
Roger
On 10/3/05, Prof Brian Ripley <[EMAIL PROTECTED]> wrote:
>
> On Mon, 3 Oct 2005, roger bos wrote:
>
> > As others have alluded,
Anyone know why I would get an Error: couldn't find function "write.gif"
despite loading library(caTools) with no errors in R 2.1.1 under XP?
Thanks,
Roger
> library(fields) # for tim.colors
fields is loaded use help(fields) for an overview of this library
> library(caTools) # for write.gif
Load
Paolo,
As others have alluded, R does not have any one package that is as
versatile and powerful as NuOpt, but R does have many different optimization
packages, so you can do LP, QP, Integer programming, and many more types of
optimization, all without having to learn a new language. But being fre
Thanks Gabor and Petr. It seems that all you have to do is use 'clipboard'
and not 'file("clipboard")' as we were doing. The row.names won't copy if
you use file. I don't know if that is a bug or a feature, but if you were
debugging someones code who already had 'file()' there, it would be hard to
memory.limit may not be the correct command. I use the command 'utils::
memory.size(3*1024)' to increase my memory size after using editbin to
modify the header of R to make it LARGEADDRESSAWARE as described in the
above FAQ. I am able to read about 2.7Gb into memory that way with 4Gb of
ram. Not o
That's a good point, it doesn't work for me either in R 2.1.1.
I can get row.names to copy to excel, but not col.names. In fact if I do
the following,
write.table(t(a), file("clipboard"), sep="\t")
I can get the column names, but I will have to copy and transpose the
matrix in excel to get it to
This is a good example of where you did not give us enough information to
answer your question. as.Date has a lot of formatting options for working
with dates. If you are still having problems, please provide a short example
(i.e. reproducable code).
Thanks,
Roger
On 9/26/05, Chris Buddenhagen
I too have had problems with getting RWinEdt to work, I tried the above
command lines and got the following error:
> install.packages("RWinEdt")
--- Please select a CRAN mirror for use in this session ---
trying URL '
http://cran.us.r-project.org/bin/windows/contrib/2.1/RWinEdt_1.7-3.zip'
Content
Uwe,
Thanks. I have used merge a lot, but I didn't realize you could merge on
row names. I got it working now:
test <- merge(out.r[1:5, 1:3], out.p[1:5, 1:3], by="row.names", all.x=TRUE)
Thanks,
Roger
On 8/30/05, Uwe Ligges <[EMAIL PROTECTED]> wrote:
>
> roge
I have two matrices (see example below) and I want the differences for the
matching row numbers, but the row numbers are not identical in the two
matrices. There are probably many ways to do this. Anyone know of any easy
way to do this? I could loop over them, but you know what they say about fo
Please provide an example that doesn't work, I made one up quickly just to
see what would happend and it worked without errors.
> g=c(1,0,2,0)
> g
[1] 1 0 2 0
> v<-c(5,10,15,20)
> dim(v) <- c(2,2)
> v
[,1] [,2]
[1,] 5 15
[2,] 10 20
> solve(v)*g
[,1] [,2]
[1,] -0.4 0.6
[2,] 0.0 0.0
On 8/30/05,
If employers really want someone with R/S skills they usually post the jobs
to the lists, so you are probably also looking in the right place. However
you really seem to be limiting your search options by doing this. The job I
am at didn't use R before I joined. Your better off finding a job you
es as in (used it in all of my courses and never tried "\\"
> before):
>
> rankFile <- paste("R:/New Ranks/SMC/SMC/", rankDate, ".xls", sep="")
>
> Uwe Ligges
>
>
> roger bos wrote:
>
> > I was surprise myself that I
ksSMCSMC€50818.xls"
> xls <- odbcConnectExcel(rankFile)
> xls
RODB Connection 15
Details:
case=nochange
DBQ=R:New RanksSMCSMC€50818.xls
DefaultDir=R:\NEW RANKS\SMC
Driver={Microsoft Excel Driver (*.xls)}
DriverId=790
MaxBufferSize=2048
PageTimeout=5
>
On 8/19/05, U
Sometimes even the easy stuff is difficult (for me)... I want to get
input from different places to paste together an excel filename (so
you know I'm using windows) that I can open with RODBC. I know about
using double "\" since its an escape character, but I get either 2 or
none, I can't get just
The best thing to do would be to provide an example of how you want to
use the goto, then someone can probably suggest a work around or an
alternative way of doing the same thing, once we have something
concrete to go on.
Thanks,
Roger
On 8/15/05, Warren Lamboy <[EMAIL PROTECTED]> wrote:
> Does R
I am trying to calculate the weighted mean for a of 10 deciles and I
get an error:
> decile <- tapply(X=mat$trt1m, INDEX=mat$Rank, FUN=weighted.mean, w=mat$mcap)
Error in FUN(X[[1]], ...) : 'x' and 'w' must have the same length
All three of my inputs have the same length, as shown below, and the
w
This might be slightly off topic, but Rpad() is a good library that
displays tables in HTML format in a brower very well. You can also
use it to easily make a gui for your program/code.
HTH,
Roger
On 7/28/05, Walter R. Paczkowski <[EMAIL PROTECTED]> wrote:
> Good morning,
>
> Is it possible to
Working with dates is not easy (for me at least). I always manage to
get it done, but the code is somewhat messy. I have not tried using
the Hmisc package as Frank suggested, but I will show you my code as
an alternate way:
w <- unclass((as.Date(as.character(dataMat$fy1_period_end_date),
format=
This is really great. I use odbc for sql all the time, but I never
needed to read in excel files before. I needed to yesterday and I
looked at read.xls() from library(gdata) and it took 5-10 minutes to
read in the file and odbc did it in 5 seconds!
I guess that is the good thing about having dup
Those sizes are smaller than I thought they would be, but you repeat
the variables more than once in expand.grid, so its still large
overall. Maybe you can try a simpler example first and then build up
to what you really want once you get the simpler one working. The
underlying problem is that th
Your question is kind of broad, but two books I like are "Statistical
Analysis of Financial Data in S-Plus" by Rene A. Carmona (Springer)
and "Modeling Financial Time Series With S-Plus" by Eric Zivot and
Jiahue Wang. The last one is an Insightful publication and is
basically the user's guide for
I used this tutorial and completed steps 1-6 without errors, but on
step 7 I tried to run R CMD check on my package called 'ram' directory
one level above the 'ram' folder and I got the following error?
I:\R_HOME>R CMD check ram
* checking for working latex ...Error: environment variable TMPDIR no
Simple, all those functions, such as sum(), colSums(), colMeans(),
etc. have an argument called na.rm which you can set to TRUE to remove
NAs.
so try something like sum(X, na.rm=TRUE)
HTH,
Roger
On 5/24/05, Paulo Brando <[EMAIL PROTECTED]> wrote:
> Dear All,
>
> I've tried to sum columns --
I looked carefully at ?shapiro.test and I did not see it state
anywhere what the null hypothesis is or what a low p-value means. I
understand that I can run the example "shapiro.test(rnorm(100, mean =
5, sd = 3))" and deduce from its p-value of 0.0988 that the
null-hypothesis must be normality, bu
I have no idea how to solve that error, but I use the following bit of
code (which I picked up from someone else on this list) to update ALL
packages on CRAN and it works on 2.1.0:
x <- packageStatus(repositories="http://cran.r-project.org/src/contrib";)
st <- x$avai["Status"]
install.packages(row
Even though R is free, that doesn't mean its not possible to support
it financially. There is a provision for useRs to "join" the
foundation for a very small annual fee. I stumbled on this a few
months ago and immediately joined because I think I benefit
tremendously from using R. Check out the
Philippe,
I have no idea what "R call-tip server" means, but I will invoke it
and see what happens. I will also read the FAQ more. Thanks for your
help.
Thanks,
Roger
On Apr 7, 2005 1:53 AM, Philippe Grosjean <[EMAIL PROTECTED]> wrote:
> roger bos wrote:
> > This is
This is a TINN-R editor question rather than an R question, but can
anyone tell me how to use command line flags with TINN-R. There is a
space to fill in the path to Rgui, and I have "C:\Program
Files\R\rw2001pat\bin\Rgui.exe". If I try to add a command line flag
after that, such as " --no-save"
We have S+ at our company, but I choose to use R because I like it.
There are two observations I have. One is that many people in IT
don't seem to like open source software that much because either they
don't trust it or they say there is no one who stands behind it.
Second, equally important po
I tried making a package on windows and got a "make" error, so I was
happy I was able to get source("mystuff.R") to work in .First().
Since my utility functions are pretty simple and few in number, this
is good enough for me for now.
But I got a curious error. I can submit the command
"memory.si
I have 50 too, aparently you can't give these things away today.
Thanks,
Roger
On Sat, 26 Mar 2005 14:01:35 -0400, Kjetil Brinchmann Halvorsen
<[EMAIL PROTECTED]> wrote:
> What is this stuff about' gmail invitation'?
>
> Kjetil
>
>
> A.J. Rossini wrote:
>
> >Heck, if anyone cares, I've got
; but it seems that S+ have a server version where clients connect from
> > their desktop and submit jobs and I was wonder is there is an R
> > version.
> >
> >
> >
> >
> > On Thu, 24 Mar 2005 09:47:53 -0500, Huntsinger, Reid
> > <[EMAIL PROTECTED]>
I didn't know anything about as.raw(), so I did ?as.raw and it refer
to raw vector, so my guess is that it doesn't work with matrix types.
The following modified code seems to work, however:
b = matrix(0, 8,8)
q = 1:8
b[1,] = q
b <- as.raw(b)
dim(b) <- c(8,8)
HTH,
Roger
On Thu, 24 Mar 2005 10:
untsinger, Reid
<[EMAIL PROTECTED]> wrote:
> Is running R directly on the server machine and displaying via X or Xvnc an
> option?
>
> Reid Huntsinger
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of roger bos
> Sen
I am currently the only use-R at my company, but they are considering
buy a more powerful server and letting multiple people use it. They
asked me if R supports client-server setups. I know S+ has a server
version that does that. I didn't find anything about that on CRAN,
but hopefully someone c
x
> b) Microarrays (Affymetrix), gene expression, SNPs
> c) Linkage, association and allied methods
> http://sgdp.iop.kcl.ac.uk/summerschool/
>
> -Original Message-
> From: roger bos [mailto:[EMAIL PROTECTED]
> Sent: 15 March 2005 19:40
> To: [EMAIL PROTECTED]
> Cc
I use RODBC all day every day and while I am pretty happy with it, I
was never able to make a table separately and append to it using
sqlSave. Nevertheless, maybe my observations will help.
I always let sqlSave make the table for me. Make sure the table
doesn't exist and it will make it. I neve
I am trying to learn how to make a simple package that contains no C
or Fortran code. I used package.skeleton(...) to make a package
called "test". The directory and files look good. I downloaded and
installed Rtools (www.murdoch-sutherland.com/Rtools/tools.zip). I
added the path and from the d
syntax error.
Thanks again.
Roger
On Mon, 7 Mar 2005 08:36:50 -0800 (PST), Thomas Lumley
<[EMAIL PROTECTED]> wrote:
> On Mon, 7 Mar 2005, roger bos wrote:
>
> > I am trying to do the simplest thing in the world. The following works:
> >
> > aaa <- ifelse(aaa==
I am trying to do the simplest thing in the world. The following works:
aaa <- ifelse(aaa==5, 6, 7)
But if I want to change the if...else syntax instead, it gives errors
and assigns 7 to aaa. Here is the problem code:
aaa <- 5
if ( aaa==5 ) {
aaa <- 6
}
else {
aa
I have been using RODBC for a while with no complaints (R 2.0.1
patched under WinXP), then I saw a link
(http://grass.itc.it/statsgrass/r_and_dbms.html) showing that Rdbi
claims to run a query in 5 seconds that takes RODBC 4.3 minutes. That
was hard enough for me to believe that I wanted to try so
Paul,
You don't want to write you own function. merge() will do that for
you very quickly and efficiently. Just to elaborate on Mike's reply,
here is an example of how to use merge:
> test <- merge(out, trt1m, by="gvkey")
> names(out)
[1] "gvkey""datadate" "Price""FV" "ER" "
I have around 200 data frames I want to rbind in a vectorized way.
The object names are:
m302
m303
...
m500
So I tried:
mlist <- paste("m",302:500,sep="")
dat <- do.call("rbind", get(list(mlist)))
and I get "Error in get(x, envir, mode, inherits) : invalid first argument"
I know "rbind" is va
quot;ts", R dispatches
> "portfiolio.optim(x, ...)" to "portfolio.optim.ts(x, ...)". Otherwise,
> it is dispatched to "portfolio.optim.default(x,...)".
>
> hope this helps.
> spencer graves
>
> Achim Zeileis wrote:
>
> >On
uot;portfolio.optim":
>
On Thu, 13 Jan 2005 19:58:33 +0100, Achim Zeileis
<[EMAIL PROTECTED]> wrote:
> On Thu, 13 Jan 2005 13:44:58 -0500 roger bos wrote:
>
> > At the risk of ridicule for my deficient linear algebra skills, I ask
> > for help using the solve.QP
1 - 100 of 102 matches
Mail list logo