Displaying 5 results from an estimated 5 matches for "tochron".
Did you mean:
chron
2014 Jun 15
1
reading time series csv file with read.zoo issues, then align time stamps
...429.85
10/12/2011 0:11:26 428.85
10/12/2011 0:15:00 428.85
10/12/2011 0:20:03 428.85
10/12/2011 0:21:29 428.75
10/12/2011 0:25:01 428.75
10/12/2011 0:30:01 428.75
10/12/2011 0:31:31 428.75"
library(zoo)
library(chron)
fmt <- "%m/%d/%Y %H:%M:%S"
toChron <- function(d, t) as.chron(paste(d, t), format = fmt)
z <- read.zoo(text = Lines, index = 1:2, FUN = toChron)
# 5 minute aggregates
m5 <- times("00:05:00")
ag5 <- aggregate(z, trunc(time(z), m5), mean)
# 5 minute spline fit
g <- seq(trunc(start(z), m5), end(z), by = m5)...
2010 Feb 01
3
Convert a column of numbers to a column of strings
Hello,
Please excuse me if this question has been asked before. I'm new to R, and
have been trying to google the answers without any success.
I would like to convert a set of date and time into R date-time class. Right
now, the dates and times are in integer format, so I first need to convert
them into string, and then to R date-time using strptime. However, I have a
problem converting them
2012 Mar 22
4
read.zoo - combining two columns with date and time respectively into one index column?
I have three columns in my raw data: date, time, and dry bulb temperature:
http://r.789695.n4.nabble.com/file/n4495326/weathDataSDCoron.txt
weathDataSDCoron.txt
The date format is %Y%m%d and the time format is %H:%M. Any ideas on how to
read it in such that it looks at the first two columns and then merges it
into one column combining both the date and time?
--
View this message in context:
2012 Feb 17
6
convert zoo object to "standard" R object so I can plot and output to csv file
...429.85
10/12/2011 0:11:26 428.85
10/12/2011 0:15:00 428.85
10/12/2011 0:20:03 428.85
10/12/2011 0:21:29 428.75
10/12/2011 0:25:01 428.75
10/12/2011 0:30:01 428.75
10/12/2011 0:31:31 428.75"
library(zoo)
library(chron)
fmt <- "%m/%d/%Y %H:%M:%S"
toChron <- function(d, t) as.chron(paste(d, t), format = fmt)
z <- read.zoo(text = Lines, index = 1:2, FUN = toChron)
# 1 minute spline fit
m1 <- times("00:01:00")
g <- seq(trunc(start(z), m1), end(z), by = m1)
na.spline(z, xout = g) # this did what I want but what is the vector nam...
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.