Next time please provide sample data in a form we can easily read in (look at
?dput for example)
If i understand this right:
yourData<-read.table(header=T,text="
datedays rate
1996_01_02 155.74590
1996_01_02 505.67332
1996_01_02 785.60888
1996_01_0
On Thu, Jun 17, 2010 at 6:26 AM, Nicholas R Frazier wrote:
> I'm quite new to R. I have a time series of annual state population
> estimates from census.gov, and I'd like to get a time series of monthly
> estimates, by a nonlinear interpolation.
Please provide some test data in reproducible form
... and what package is interpNA in, pray tell? (Such information is
requested in the posting guide).
Base R does it with a bit of fiddling:
?approx
But please read the Help carefully. Here is a simple example of how it is
used:
> x <- 1:5
> y <- c(2,rep(NA,3),7)
> approx(x,y, xout =1:5)## Note
On Wed, May 12, 2010 at 5:14 PM, Jorge Nieves wrote:
> I have a two Colum matrix ( I named it holder) as shown bellow. It seems
> to be three columns, but the first column contains the row names.
You can't have a matrix whose columns are different classes.
>
> I am trying to fill all NAs by lin
4 matches
Mail list logo