OK, this is what I did. To explain a bit further (because I changed a few things):
I used purchase_data instead of Orders_dataset as the vector (??) I wanted to assign all of this to. This more closely matched the column of data I wanted to have separated ("order_purchase_timestamp"). The dataset is actually called olist_orders_dataset. So this is what I ended up entering:
purchase_data<-c("olist_orders_dataset", 'order_purchase_timestamp')
purchase_data = purchase_data |>
separate_rows(order_purchase_timestamp, into = c('date', 'time'), sep = ' ', remove = F)
I ended up with the following error:
Error in separate_rows()
:
! Arguments in ...
must be passed by position, not name.
Problematic arguments:
• into = c("date", "time")
• remove = F
Run rlang::last_error()
to see where the error occurred.
I ran "rlang::last_error() per the instructions and got a message saying to run rlang::last_trace(), which I did. The following came up:
rlang::last_error()
<error/rlib_error_dots_named>
Error in separate_rows()
:
! Arguments in ...
must be passed by position, not name.
Problematic arguments:
• into = c("date", "time")
• remove = F
Backtrace:
- tidyr::separate_rows(...)
Run rlang::last_trace()
to see the full context.
rlang::last_trace()
<error/rlib_error_dots_named>
Error in separate_rows()
:
! Arguments in ...
must be passed by position, not name.
Problematic arguments:
• into = c("date", "time")
• remove = F
Backtrace:
▆
- └─tidyr::separate_rows(...)
- └─ellipsis::check_dots_unnamed()
-
└─rlang:::action_dots(...)
-
├─base (local) try_dots(...)
-
└─rlang (local) action(...)
Is this saying that instead of putting the column title (order_purchase_timestamp), I should be putting the position number of the column in the dataset (4)? If that is the case, would it look like this:
purchase_data<-c("olist_orders_dataset", 'order_purchase_timestamp')
purchase_data = purchase_data |>
separate_rows(4, into = c('date', 'time'), sep = ' ', remove = F)