Extract year from date?

How can I remove the first elements from a variable, especially if this variable has a special characters. For examp...

R dates “origin” must be supplied?

My code: axis.Date(1,sites$date, origin="1960-10-01") Error: Error in as.Date.numeric(x) : 'origin' must be supp...

converting time from hh:mm:ss to hh:mm in java?

I want to convert time to hh:mm from hh:mm:ss it comes from database (my sql) in the form of hh:mm:ss. I tried the f...

R Merging XTS time series causing duplicate time of day?

I've never found an efficient way to solve a problem I've encountered every time I try to combine different sources ...