similar to: as.Date: fixed

Displaying 20 results from an estimated 5000 matches similar to: "as.Date: fixed"

2016 Apr 18
1
as.Date
Dear ALL, Thank you so much for your contributions. I have made some progress. Below is a simple script I gleaned from your kind responses: Sys.setenv(TZ="Etc/GMT") dates <- c("02/27/92", "02/27/92", "01/14/92", "02/28/92", "02/01/92") times <- c("23:0:0", "22:0:0", "01:00:00", "18:0:0",
2016 Apr 18
0
as.Date
The most important thing is that Date objects by definition do not include time of day. You want to look at ISOdatetime() and as.POSIXct() instead. And beware daylight savings time issues. -pd On 18 Apr 2016, at 15:09 , Ogbos Okike <giftedlife2014 at gmail.com> wrote: > Dear All, > > I have a data set containing year, month, day and counts as shown below: > data <-
2016 Apr 18
4
as.Date
Dear All, I have a data set containing year, month, day and counts as shown below: data <- read.table("data.txt", col.names = c("year", "month", "day", "counts")) Using the formula below, I converted the data to as date and plotted. new.century <- data$year < 70 data$year <- ifelse(new.century, data$year + 2000, data$year + 1900)
2018 Jan 22
0
Manipulating two large dataset differing by date and time
Hi Ogbos, You can just use ISOdate. If you pass more values, it will process them: ISOdate(2018,01,22) [1] "2018-01-22 12:00:00 GMT" > ISOdate(2018,01,22,18,17) [1] "2018-01-22 18:17:00 GMT" Add something like: if(is.null(data$hour),data$hour<-12 then pass data$hour as it will default to the same value as if you hadn't passed it. Jim On Mon, Jan 22, 2018 at 6:01
2016 Apr 22
0
clock24.plot
Hi Ogbos, Here is your sample data plotted in roughly the same way as the image. You can get the hours to start at the bottom, but it will require more code. swe$hour<-as.numeric(sapply(strsplit(swe$time,":"),"[",1)) swe$FD<-sample(1:2,nrow(swe),TRUE) library(plotrix) clock24.plot(swe$count,swe$hour,rp.type="s",radial.lim=c(3000,4010),
2018 Jan 22
2
Manipulating two large dataset differing by date and time
Dear Members, Compliments of the Season!! Below is a part of a code I use for Fourier analysis of signals. The code handles data with the format 05 01 01 8628 (year, month, day and count) 05 01 02 8589 (year, month, day and count) The sample data is attached as 2005daily.txt. I would like to adapt the code to handle data of the form: 05 01 01 00 4009
2016 Apr 29
0
clock24.plot/radial plot: Fixed
Dear All, This problem is over. Clock24.plot did the job. Thanks to all those who assisted me. Ogbos On Apr 22, 2016 8:34 PM, "Ogbos Okike" <giftedlife2014 at gmail.com> wrote: > Dear All, > One hand. Many thanks!! The code run as soon as I loaded lubridate. > > Please can you guide me on how to relate this code to my actual data. > My actual data is looking like:
2016 Apr 30
0
Could not find function "pointsToRaster"
Hi, A terrific resource for this type of issue (and pretty much anything related to R) is http://rseek.org/ I'm sure I use it at least daily. Check out ... http://rseek.org/?q=pointsToRaster The first hit is about pointsToRaster() - it has been replaced by raster::rasterize() Cheers, Ben > On Apr 30, 2016, at 4:28 AM, Ogbos Okike <giftedlife2014 at gmail.com> wrote: > >
2016 Apr 22
0
clock24.plot/radial plot
Looks like you forgot to load the lubridate package library(lubridate) You are calling functions days(), hours(), minutes(), seconds(), and hour() which all come from that package. ------------------------------------- David L Carlson Department of Anthropology Texas A&M University College Station, TX 77840-4352 -----Original Message----- From: R-help [mailto:r-help-bounces at
2016 Apr 22
0
clock24.plot/radial plot
I use ggplot2 for all my plotting needs where you can make plots circular with the coord_polar. Maybe this will help you along: http://rstudio-pubs-static.s3.amazonaws.com/3369_998f8b2d788e4a0384ae565c4280aa47.html On Fri, 22 Apr 2016 at 08:31 Ogbos Okike <giftedlife2014 at gmail.com> wrote: > Dear All, > I am trying to generate a circular/radial plot. The script below has a >
2016 Apr 22
2
clock24.plot/radial plot
Kind Experts, Many thanks for your guide. I have tried to figure out something that can help me plot my own data using the examples you referred me to. I copied part of the code as: set.seed(44) N=500 events <- as.POSIXct("2011-01-01", tz="GMT") + days(floor(365*runif(N))) + hours(floor(24*rnorm(N))) + # using rnorm here
2010 Feb 04
0
pca in R: Problem Fixed
Good day all. This is to thank all those who have helped in fixing this problem. Starting with a text book was indeed a problem, however, that gave me a clue of what I was looking for. This, with your contributions added to other materials I got on the net, put me on the right track. Thank you so much. Warmest regards Ogbos On 31 January 2010 14:07, S Ellison <S.Ellison@lgc.co.uk> wrote:
2024 Mar 29
2
Output of tapply function as data frame: Problem Fixed
Dear Rui, Thanks again for resolving this. I have already started using the version that works for me. But to clarify the second part, please let me paste the what I did and the error message: > set.seed(2024) > data <- data.frame( + Date = sample(seq(Sys.Date() - 5, Sys.Date(), by = "1 days"), 100L, + TRUE), + count = sample(10L, 100L, TRUE) + ) > > # coerce
2024 Mar 29
1
Output of tapply function as data frame: Problem Fixed
?s 01:43 de 29/03/2024, Ogbos Okike escreveu: > Dear Rui, > Thanks again for resolving this. I have already started using the version > that works for me. > > But to clarify the second part, please let me paste the what I did and the > error message: > >> set.seed(2024) >> data <- data.frame( > + Date = sample(seq(Sys.Date() - 5, Sys.Date(), by = "1
2020 Oct 07
0
Fwd: Share your article [ATP_105460] published in Journal of Atmospheric and Solar-Terrestrial Physics
Dear Friends, I am really glad to share this link with you. Some of you have been instrumental to the success of the work. You are acknowledged accordingly. I am ever indebted. Best wishes Ogbos ---------- Forwarded message --------- From: Elsevier - Article Status <Article_Status at elsevier.com> Date: Wed, Oct 7, 2020 at 10:50 AM Subject: Share your article [ATP_105460] published in
2010 Apr 07
0
Error bar:Problem Fixed
Great stuff! Both plotrix and plotCI do the same but what count most here is the idea of assigning NA to some of the ciw values. Following your code, I assign "ciw[c(1,2,4,5,6,7,9,11)]<-NA" and that left me with the three error bars I wanted to display. Many thanks and warmest regards Ogbos On 7 April 2010 00:28, Jim Lemon <jim@bitwrit.com.au> wrote: > On 04/07/2010 03:49
2009 Aug 25
0
vector size: Fixed
Hi Uwe, I am pleased to inform you that this problem has, following your hint, been resolved. I installed 64-bit version of R and I was alright. Thanks again for your time. Ogbos 2009/6/24 Uwe Ligges <ligges@statistik.tu-dortmund.de> > > > ogbos okike wrote: > >> Hi, >> I have a data of size 981.1MB(1028707715) and I intend to calculate the >> length of the
2011 Aug 01
0
Problem Fixed: axes label
Hi Peter, Many thanks. It worked. Regards Ogbos On 1 August 2011 14:05, Peter Ehlers <ehlers@ucalgary.ca> wrote: > On 2011-08-01 03:32, ogbos okike wrote: > >> Dear All, >> I am trying to put 10^-8 st km^-2day^-1 on x-axis of my plot. I tried >> using >> : ylab = expression(paste("st / ", plain(km)^2, " / day")) to see if I can >> at
2010 Mar 09
0
Removing Zeros from matrix:Problem fixed
Hey, Thanks for your great inputs. While "index = apply(mat == 0, MARGIN = 1, any)" gives you an idea of the rows containing zero(s), "index<-data[!apply(data==0,MARGIN=1,any),]" does the actual job of removing the rows with zeros. Kind regards Ogbos On 9 March 2010 15:12, Paul Hiemstra <p.hiemstra@geo.uu.nl> wrote: > Dimitris Rizopoulos wrote: > >>
2010 Oct 07
0
Problem Fixed
Hey Duncan, Thank so much for the site. Quite helpful. Containing everything and informing me that raster has got no older version. I have also installed the new R version and I am fine. Regards Ogbos On 5 October 2010 15:11, Duncan Murdoch <murdoch.duncan@gmail.com> wrote: > On 05/10/2010 9:00 AM, ogbos okike wrote: > >> Hello, >> The R version on my system is R version