Search Archives
Search tips
from:Name
Search by author name, e.g. from:Duncan Murdoch
"exact phrase"
Match an exact phrase
word1 word2
Match messages containing both words
Date range
Use the date pickers to filter results to a time period
Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.
As Rui said, this is a pretty vague question... Nonetheless, if you are using lm() for example you should use the newdata argument in predict(). Have a look at ?predict.lm for example. > -----Original Message----- > From: r-help-bounces at...
Look at the append argument of write.table. Also, read ?write.table. The same holds for write.csv. > -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- > project.org] On Behalf Of Cheryl...
Reorder the rows and/or columns of your matrix: e.g. dotchart(a[2:1,7:1], main="Dotchart", xlim=c(0,50)) > -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project...
If you are writing the loop yourself, you can use print() statements in the loop. If you are using something like optim(), have a look at the documentation and use the trace option under the control argument. Otherwise, put a...
Have you tried other values for trace? Higher values will likely provide more information (depending on the method - BFGS here) - e.g. use trace = 2 or 3 etc instead of TRUE (which is similar to using 1). Optim calls an...
Have a look at example(try) and demo(error.catching) > -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] > On Behalf Of Jonathan Greenberg > Sent: Wednesday, October 17, 2012 21:48...
I am not sure exactly what errors you are getting, but here are some comments. It is good practice to initialize a vector to the total length that you will require instead of changing the dimension each time you substitute...
You will have to split() the data and unsplit() it after making the alterations. Have a look at the plyr package for such functions. > -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r...
Without commenting on the method itself, shouldn't you be using both x and y twice within each loop instead of x three times and y only once? Please provide a snippet of your data by including the output of...
I think the issue is that the with expand.grid and times >= 4 you are likely to run out of memory before subscripting (at least on my machine). A simplification is to realize that you are looking for points in...
Replace the y[1] with x[2] in the apply function - there is no 'y' defined in the function passed to apply. In the apply function, x is an 2-element vector representing a single row of the data (since...
Or have a look at tapply(). > -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] > On Behalf Of Pascal Oettli > Sent: Saturday, October 13, 2012 22:16 > To: GradStudentDD > Cc: r...
You can use subscripting on the matrix, e.g. ind <- test == 40 and the test[ind] <- 1. Just deal with the "id" column when you set the rest to 0. > -----Original Message----- > From: r-help-bounces at r-project.org...
Can't find what you're looking for? Try searching with Google .