Displaying 2 results from an estimated 2 matches for "odserv".
Did you mean:
adserv
2006 Oct 04
2
convert vector to matrix
Hi All,
I have vector containing 10 elements(odservations). I need to put this into a matrix, where the matrix should contain only one column.
I need this to be done using the cbind command because in the final table I should have a column of attributes( from adifferent vector) and a column of vectors from the matrix above
Please suggest me how t...
2008 Jul 24
4
Dividing by 0
I'm trying to calculate the percent change for a time-series variable.
Basically the first several observations often look like this,
x <- c(100, 0, 0, 150, 130, 0, 0, 200, 0)
and then later in the life of the variable they're are generally no more
0's. So when I try to calculate the percent change from one observation to
the next, I end up with a lot of NA/Nan/INF, and