Do I need that read.table if the tst dataframe already exists in my
system? If so, why?
--
Hello,
You have to load the packages involved:
library(dplyr)
library(tidyr)
library(ggplot2)
then run the full sequence. Though this is not important,
That worked, and helped my understanding. Thank you.
Hello,
You have to load the packages involved:
library(dplyr)
library(tidyr)
library(ggplot2)
then run the full sequence. Though this is not important, if you are
pivotting columnns named y1 and y2
I'm trying to do as you suggest, but I'm not understanding what I need
to do. I asked what the line pivot_longer(-time, names_to = "y1") would
do if applied to this df:
> tst
time y1 y2
1 18:55 30 19
2 18:56 30 19
3 18:57 29 19
4 18:58 31 19
5 18:59 28 19
6 19:00 28 19
7 19:01 28 19
As I said, the lines below that you provided worked well for me. Can you
explain what this line does?:
# reshape to long format
pivot_longer(-Dtime, names_to = "NO2") %>%
-
library(ggplot2)
library(dplyr)
library(tidyr)
b %>%
mutate(Dtime
Thank you for the ideas below. That did work. I thought I had tried
"10 mins" before, but maybe I used just 10 min.
===
Yes, you can have date_breaks = "n mins" where n is any integer.
date_breaks = "15 mins"
date_breaks = "30 mins"
date_breaks = "1 hour" # or "1 hours", plural
5 matches
Mail list logo