Dear R users,
> I want to thank you all for your contributions to the problem I posted. It
> has been solved. Find below the code that solved the problem.
>
df1 <- read.table("SWS1998_2002", header = TRUE)
df1$date <- as.Date(paste(df1$year, df1$day),
 format = "%Y %j",
origin = "1998-01-01")
df2 <- df1[c("date", "Dst")]
head(df2)
#To display all the rows
 print(df2
Thanks,
Jibrin Alhassan

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to