• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Is it possible in R to split my date-time values into 5 different columns (Year, month, date, hour, minute)?

Resolved: Is it possible in R to split my date-time values into 5 different columns (Year, month, date, hour, minute)?

0
By Isaac Tonny on 18/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I am really new at R and this is probably a really basic question: Let’s say I have a dataset with a column that includes date values of the format (“y-m-d H:M:S”) as a Factor value. How do I split the one column into 5?
Given example:
I get the error: for objects with the class(c(‘POSIXct’, ‘POSIXt’) can not be used.

Answer:

Change it into dataframe then run mutate part will works

If you have better answer, please add a comment about this, thank you!

r
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: Why when i change manualy the url on my react page it ignores the .css file?

24/03/2023

Resolved: navigate and redirect not redirecting to path in react router

24/03/2023

Resolved: Time Complexity: Find the number of people who know a secret leetcode 2327

24/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.