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.
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20111206/d0b5f07b/attachment.pl>
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20111205/f9388f70/attachment.pl>
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20111123/6e6d3da0/attachment.pl>
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20111124/e2c5a08d/attachment.pl>
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20130319/838250f0/attachment.pl>
I apologise for this very basic question, but I found no answers on the web. I want to create a data.table with n columns, named i1 ... i'n', with only one row with value = 100 for every variable. I...
I have to evolve each element of a matrix W W <- matrix(0,2,3) according to some function which uses the indices of the matrix [i,j] as arguments: w.fun = function(i,j) { return A[i]*B[j...
Hi, thanks a lot to everybody for your help. Very nice suggestions! Matteo On 16 December 2015 at 12:53, Matteo Richiardi <matteo.richiardi at gmail.com> wrote: > I apologise for this very basic question, but I found no answers...
Hi, I'd like to create a function that accepts as arguments a string that is to be substituted within a variable name. For instance, suppose I have a data frame df: df<-data.frame(x_narrow=c(rnorm(100...
Hello, I'm a newby in R. I have created a data.frame holding panel data, with the following columns: "id","time","y", say: periods = 100 numcases = 100 df = data.frame( id = rep(1:numcases,periods), time = rep(1:periods...
What is the best way to store data in a cube? That is, I need to create a data structure D with three indexes, say i,j,h, so that I can access each data point D[i,j,h...
Dear R-users, a very easy one for you, I guess. I need to extract the indexes of the elements corresponding to different quantiles of a vector. When a quantile is an interpolation between two adjacent values, I need the...
Hi, following an earlier suggestion from the list, I am storing my data in a "cube", i.e. an array of matrixes. Is there any smarter way of updating the elements of the cube through a function, other than the...
I have several estimated time series, running from 2013 to 2050. 'y' values are constrained between 0 and 1. I would like to plot them using shaded colours of decreasing intensity, depending on an estimated density at each point x...
I wish to simulate the following stochastic process, for i = 1...N individuals and t=1...T periods: y_{i,t} = y_0 + lambda Ey_{t-1} + epsilon_{i,t} where Ey_{t-1} is the average of y over...
I want to dynamically populate a vector by iteratively applying a function to its previous element, without using a 'for' cycle. My solution, based on a question I posted some times ago for a more complicated problem (see "updating elements...
I am following the example I find on ?assign: a <- 1:4 assign("a[1]", 2) This appears to create a new variable named "a[1]" rather than changing the value of the vector. Am I missing something here? How...
Thanks Sarah (and all the others who replied) for your precious suggestions! Matteo On 22 November 2016 at 14:18, Sarah Goslee <sarah.goslee at gmail.com> wrote: > Here's how to get one: > > x <- c(9,9,1,3...
Hi, I'm trying to write a small microsimulation in R: that is, I have a dataframe with info on N individuals for the base-year and I have to grow it dynamically for T periods: df = data.frame( id...
Hi Daniel, thanks for your answer. How can I populate the array with the matrixes? Suppose I want to populate it with 10 matrixes matrix(NA,5,5) Matteo On 15 January 2016 at 22:26, Dalthorp, Daniel <ddalthorp at...
Can't find what you're looking for? Try searching with Google .