Re: [R] Converting "day of year" to "year", "month" and "day"

2021-01-15 Thread Rui Barradas
Hello, Thanks for the data, it makes things easier. df1 <- read.table("Jibrin_data.txt", header = TRUE) #'data.frame': 168 obs. of 4 variables: # $ year: int 1998 1998 1998 1998 1998 1998 1998 1998 1998 1998 ... # $ day : int 1 2 3 4 5 6 7 8 9 10 ... # $ Hr : int 0 0 0 0 0 0 0 0 0 0 ... #

Re: [R] Converting "day of year" to "year", "month" and "day"

2021-01-15 Thread Jibrin Alhassan
Hi Barradas Sorry for the delay. Below is a section of my data. I have up to 1826 covering 1998 to 2002 year day Hr SWS 1998 1 0 344. 1998 2 0 346. 1998 3 0 356. 1998 4 0 332. 1998 5 0 302. 1998 6 0 329. 1998 7 0 395. 1998 8 0 359. 1998 9 0 471. 1998 10 0 3

Re: [R] A question regarding 749 R[21525:2855847] Warning

2021-01-15 Thread Gregory Coats via R-help
I reported this behavior on Thu Jan 7, 2021. You did nothing wrong. No fix has been issued. This evening, I upgraded from R 4.0.2 to the Duke University R 4.0.3 for Apple Mac. Now all I can get from R 4.0.3 is this red error message (that means nothing to me). Is there an easy fix? Greg 2021-01

[R] The useR! 2021 Call for Tutorials is open now!

2021-01-15 Thread useR! 2021 global
The useR! 2021 Call for Tutorials is open now! *(Due Date Friday, February 5, 2021)* useR! 2021 is going virtual, and we are happy to open the call for the tutorial proposals. The tutorials will be for R users in all sectors, e.g., researchers, government officers and industry representatives wh

[R] A question regarding 749 R[21525:2855847] Warning

2021-01-15 Thread maedeh kamali
Dear Sir/Madam, After installing R package version 4.0.3 and launching the R Console for the first time, below warning message appeared: 021-01-15 11:52:28.749 R[21525:2855847] Warning: Expected min height of view: () to be less than or equal to 30 but got a height of 32.00. This error wil

Re: [R] Converting "day of year" to "year", "month" and "day"

2021-01-15 Thread Jim Lemon
Hi Jibrin, solar_wind_sps<-data.frame(sws=306,date="2021-016") solar_wind_spd solar_wind_spd$date<-as.Date(solar_wind_spd$date,"%Y-%j") solar_wind_spd This changes the "date" field to an actual date object. If you just want to change a character string date to another format: solar_wind_spd$date<

Re: [R] Converting "day of year" to "year", "month" and "day"

2021-01-15 Thread Martin Møller Skarbiniks Pedersen
On Fri, 15 Jan 2021 at 18:55, Jibrin Alhassan wrote: > > Dear R users, > I am very new to R software. I have solar wind speed data needed for my > work. How do I convert day in the year to year, month, and day with R > software? I have used this code > as.Date(0, origin = "1998-01-01") Look at th

Re: [R] package not available for R version...

2021-01-15 Thread varin sacha via R-help
Hi, Yes, I can but I don't know if it will solve my problem. I will give an attempt ! Best, Le mercredi 13 janvier 2021 à 07:41:22 UTC+1, Caitlin Gibbons a écrit : Hi. Can you upgrade your version of R? That might help. ~Caitlin > On Jan 12, 2021, at 1:08 PM, Duncan Murdoch

Re: [R] package not available for R version...

2021-01-15 Thread varin sacha via R-help
Hi, Yes, I don't really know what the maintainer will answer to me. Except that rgam is no longer on CRAN, that I already know ! However, I know mgcv and "classical" GAM model but GAMs can be very sensitive to the presence of a small proportion of observations that deviate from the assumed mode

Re: [R] Converting "day of year" to "year", "month" and "day"

2021-01-15 Thread Bill Dunlap
Use one of the POSIXt classes, POSIXct or POSIXlt, instead of the Date class. They have more methods for doing arithmetic. E.g., > dates <- as.POSIXct(tz="UTC", c("2004-03-01", "2005-03-01")) > difftime(dates, trunc(dates, units="year"), units="days") # add 1 if you want -01-01 to be day 1 in

Re: [R] Converting "day of year" to "year", "month" and "day"

2021-01-15 Thread Bert Gunter
There are many good tutorials for R. As a "newbie", you need to avail yourself of them. Although this forum is meant to "help", it is not designed to provide tutorials. Understanding basic R functionality is largely assumed here. Searching on "tutorials on date-time data in R" brought up many poss

Re: [R] Converting "day of year" to "year", "month" and "day"

2021-01-15 Thread Rui Barradas
Hello, No dataset was attached. Like the posting guide says, No binary attachments except for PS, PDF, and some image and archive formats (others are automatically stripped off because they can contain malicious software). Files in other formats and larger ones should rather be put on the web

[R] Converting "day of year" to "year", "month" and "day"

2021-01-15 Thread Jibrin Alhassan
Dear R users, I am very new to R software. I have solar wind speed data needed for my work. How do I convert day in the year to year, month, and day with R software? I have used this code as.Date(0, origin = "1998-01-01") but it can only convert one day of the year at a time. Meanwhile, I have up t