search for: hccole

Displaying 9 results from an estimated 9 matches for "hccole".

Did you mean: hccoles
2012 Feb 17
6
convert zoo object to "standard" R object so I can plot and output to csv file
Another newbie question I got the 1 minute spine interpolation and 15 mean aggregation working with many thanks to Gabor Grothendieck using Zoo functions. I got a tip from Hasan Diwan to look at xts but it seemed I would make better progress using code from Gabor. Now I'm having trouble plotting this zoo object. I'm thinking I want a function to "split" the zoo object back to
2012 Mar 13
1
sunflower plot, making vectors?
I'm having a bit of trouble finding and understanding the correct function to make numeric vectors to feed the sunflowerplot function. I have 33k points to show and I want to do better than the standard scatter plot. I gather that I need two vectors (x and y) of the same count containing the "center" value of each bin. FYI - I have two pieces of data: 1 - x axis - time in days of
2012 Feb 18
2
still need read.zoo command help
The problem now is it looks like my read.zoo isn't working. Sorry for sort of double posting. Someone please assist if you have time with my read.zoo command line. my data is as just below this line, a time stamp and a real number with a comma sep. 10/11/2011 23:00:06,432.12 z=read.zoo("Kevin-0-comma-ITPower.txt", format="%m/%d/%Y %H:%M:%S",
2012 Apr 24
4
Simple matrix transformation question
I know this is likely very simple. I want to change a matrix that was given to me not sorted by timestamp to sorted by timestamp. It was sorted by CRAH_Name. There are 264k records initially. The CRAH names start at 11 and go to 98 but there are a number of missing values (CRAH_Name), total approx. 50. A small example of the given matrix Time_Stamp Power CRAH_Name 4/16/2012 00:00 3.4862 11
2012 Feb 17
1
time series manipulation what functions are "best"
Newbie question - mechanical engineer trying to learn R I've had success with plotting time series data and even made a heat map using R Graphs Cookbook by Mittal. I have a new problem - I need to align a number of time series data "columns" to the desired regular exact time stamp vector. The target time vector could be finer or more course than the typical time stamp spacing found.
2012 Feb 17
0
error with read.zoo, "Error in xy.coords(x, y) : (list) object cannot be coerced to type 'double'
I'm now trying to read.zoo in a rather long txt file with two columns: date/time and value in kW e.g. 432.2189 The read.zoo function finally ran without errors but not sure it is correct. I took the header off, and put in commas and added a " at the beginning and " at the end. z=read.zoo("Kevin-0-comma-ITPower.txt","%m/%d/%Y
2012 Feb 05
2
text command - how to get a white background to cover grid lines
New to R - rookie question. I'm a mechanical engineer and enjoying using R to make high quality graphs. I've searched. I want to put text notation on graph plot areas and have the text background "box" white to cover over the grid lines. my command so far.... text(15,5200,"Air Flow",cex=.8,col="blue", background="white") # this doesn't
2012 Mar 18
1
problem saving gplot.hexbin using file save as pdf - "Error: invalid graphics state
I can save to png, TIFF and jpg but get an error "Error: invalid graphics state" when trying to save as pdf and I have to restart R. This happens when I add mtext lines. There are a few other questions e.g. I want to move the mtext on side 1 to the left, but that is the main issue for now. I'm not using the ylab inside gplot.hexbin because it writes over the numbers on the axis.
2014 Jun 15
1
reading time series csv file with read.zoo issues, then align time stamps
Goal: get time series data interpolated on to desired time stamps. I have two or more data sets that have time stamps that vary from 5 mins to 3-5 hours. I want to get all the data put on common time stamps e.g. "00:05:00" intervals. I asked Gabor and got some very good code ( zoo aggregate, na.spline, na.approx) but I'm having trouble getting the csv file read in and converted to a