Displaying 1 result from an estimated 1 matches for "day1avg".
Did you mean:
datavg
2010 May 23
1
Re : Indexing array to 1000
...need to plot graph Month Vs Index. To achive this I am doing the below
code. I am feeling there may be a simple way to do this.
> value <- matrix (avglog)
> value
[,1]
[1,] 60102
[2,] 83397
[3,] 56774
[4,] 48785
[5,] 49010
[6,] 40572
[7,] 38175
[8,] 47037
[9,] 51402
> day1Avg <- value[1]
> day1Avg
[1] 60102
> ID <- (1000/day1Avg)
> ID
[1] 0.01663838
> index <- value*ID
> index
[,1]
[1,] 1000.0000
[2,] 1387.5911
[3,] 944.6275
[4,] 811.7034
[5,] 815.4471
[6,] 675.0524
[7,] 635.1702
[8,] 782.6195
[9,] 855.2461
> monthc...