Skip to content

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.

13 results for “from:Pieter Schoonees”

adding a new individual
Pieter Schoonees · Oct 18, 2012 · r-help

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...

Append Data to an Excel File through each Iteration of a For Loop
Pieter Schoonees · Nov 6, 2012 · r-help

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...

dotchart ordering problem
Pieter Schoonees · Oct 12, 2012 · r-help

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...

how to show iterations
Pieter Schoonees · Oct 14, 2012 · r-help

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...

how to show iterations
Pieter Schoonees · Oct 14, 2012 · r-help

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...

Completely ignoring an error in a function...
Pieter Schoonees · Oct 17, 2012 · r-help

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...

PFIM 3.2
Pieter Schoonees · Oct 14, 2012 · r-help

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...

average duplicated rows?
Pieter Schoonees · Oct 12, 2012 · r-help

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...

For loop with i and j and multiple if statements... help!
Pieter Schoonees · Oct 18, 2012 · r-help

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...

Autofilling a large matrix in R
Pieter Schoonees · Oct 12, 2012 · r-help

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...

For loop with i and j and multiple if statements... help!
Pieter Schoonees · Oct 18, 2012 · r-help

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...

Replace column values in R conditional on values from different column
Pieter Schoonees · Oct 13, 2012 · r-help

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...

ifelse reformulation
Pieter Schoonees · Oct 12, 2012 · r-help

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 .