similar to: a loop question

Displaying 20 results from an estimated 10000 matches similar to: "a loop question"

2004 Jun 17
2
Date Calculation
Hi, I've been playing with: > joinDate <- format(strptime(as.vector(forum[,2]), "%d-%b-%y"), + "%d-%b-%Y") > today <- format(strptime(as.vector("14-Jun-04"), "%d-%b-%Y"), + "%d-%b-%Y") > joinDate [1] "04-Feb-2004" "13-Feb-2004" "26-Feb-2004"
2004 Feb 09
10
PhD student reading list, suggestions wanted
I've got a PhD student starting this year. She'll be working on data mining. She has asked for a reading list while she's still in her home country, which is a really good sign. Her cosupervisor and I don't (think we) have any problem with choosing things that are specifically about data mining, but there are some statistical ideas (sampling, exploratory-vs-confirmatory,
2004 Feb 26
3
Collapsing Categorical Variables
Hi, Suppose I have a categorical variable called STREET, and I have 30 levels for it (i.e. 30 different streets). I want to find all those streets with only 15 observations or below then collapse them into a level called OTHER. Is there a quick way, other than using a for() loop, to do it? Currently what I'm doing is something like: ### Collapse STREET (those < 15) st <- c()
2004 Feb 16
2
problem for installing package
Hello I would like to install a package on R (splancs package) after downloading them what is the step for implementing them in my library? Thank you. --------------------------------- [[alternative HTML version deleted]]
2004 Apr 15
1
I do not achieve to install some packages
I can't load the packages locfit, lokern and quantreg. When I try to load the 3 packages the R program says that the pakages are not properly installed. He says to see the note in ?library. I think that the error is because there is no built field in the 3 packages. What can I do to make the packages run. My OS is Windows XP. Thank you Rui Martins
2004 Jun 21
2
setwd problems
Hello, I am using R for Windows and I receive error messages when trying to change my working directory: > setwd('C:\BACC_R') Error in setwd(dir) : cannot change working directory I would really appreciate your help, Joan Serra
2004 May 15
1
how to get data and post it on R
Hi , i'm having trouble getting data from outside and trying to do either a discrimination analysis or a regression analysis.I don't know what kind of data i need to use and also what are the packages i need to use. Please get me some direction so i can begin . __________________________________
2004 Mar 08
3
Decision Trees
I am familiar with the rpart and tree packages for classification and regression trees. However, quite a bit of the research in the transportation community relating to decision trees uses the C4.5 family of algorithms by Quinlan. Are there any plans to make a C4.5 (or a derivative of it) available to R? If not, then I might use the WEKA Java package ( http://www.cs.waikato.ac.nz/ml/weka) that
2004 Feb 27
5
How to save images?
After I use function plot() to get an image, how can I save the image or export it to .gif or other digital formats? Thanks a lot.
2004 Feb 16
4
plot
Hi, How could I plot two vectors on the same graph? For example, if I have two lists of results, each list is a vector. I want to display them on the same graph, so I can compare them. How could I do that? Regards, Justin
2004 Feb 05
2
I am totally lost on how to install R . . .
First . . . SUBSCRIBE (I want to subscribe to the list). Second, I am trying to install R on windows XP. In looking at the instruction manual I get the following: The simplest way is to use 'rw1081.exe' or 'miniR.exe'. Just double-click on the icon and follow the instructions. If you installed R this way you can uninstall it from the Control Panel. How do I get the
2004 Jun 03
5
cameraa rotation graphics
Dear all, Is there a camera rotation for 3d graphics in R. I have seen it in a conference one time and thought it is pretty neat. the presenter was able to rotate the 3d graph with dragging the mouse up down left right. If not in R is there something that is open source that does this. Thank you Jean Eid
2004 Feb 19
2
R won't start
Hi, I have a problem with R; it won't start! I've installed it fine, no problems, but when I try to run it the mouse cursor changes to an hourglass for 1 second and back to normal, and that's it, it doesn't start up. No error messages or nothing. I run Windows XP Pro. by the way. I'd be thankful for any help. [[alternative HTML version deleted]]
2004 Mar 25
2
book recommendation
Hello right, I need a good book to help me with R. background, programming in matlab, perl, visualBasics. os windows and Linux. some good books to match the need would be appreciated. Thanks
2004 Feb 09
5
Printting 'for' and 'while' indices
Sorry, I forgot to correct the message subject, so I am resending my doubt it below: Hi all! I wrote a very basic program in R, which has some loops ('for' and 'while'). Is there a way to print the 'for' (or while) indice while the program is running so that I am able to estimate where the program is and how long it will last? I mean, I want something like this:
2000 Jul 31
4
Loop Delaying
Hi there, I know this question may sounds strange, but here it goes: Is it possible to delay the speed of a for loop? For example, if I have: for (i in 1:100) { blah blah blah } within the for loop I want to draw a series of plots, and combining the plots together I'll have an animation. Problem is the loop is too fast and I only see the end result (which is not surprising actually).
2004 Feb 23
2
(2) Questions
Hi Fellows from R-Help List! My questions are basic since i an new with R. I am very acquainted with Matlab & Gauss (the compentence, I guess). Anyhow, (1) I am trying to get R execute comands made or built as text, so that one can feed a particular option with many variations coming from a text file. Is this possible with the free version? For instance, there exists the eval comand in
2004 Jun 04
5
How to Describe R to Finance People
> the main advantage it has over SPSS-like software is that you do not > need to explicitly create dummy variables. You only need to specify > your dependent variable and independent variables and R will fit it > (and create dummy variables automatically) for you. Does the audience know exactly what the creation of dummy variables in SPSS is and means? If not, they might consider
2003 Dec 15
3
Julian Dates
Hi, I'm a bit confused how julian() works. If I understand right, it returns the number of days since the origin. I have a vector: > SLDATX[1:10] [1] "1986-01-06" "1986-01-17" "1986-02-02" "1986-02-04" [5] "1986-02-04" "1986-02-21" "1986-03-06" "1986-03-25" [9] "1986-04-06"
2004 Feb 12
6
Basic Help
OK I have been trying to learn how to use this program and I cannot even import any data into it. I have downloaded all the manuals but they do not seem to help. Is there a book on R for dummies???