I have loaded data from a text file using :
test_data <- read_csv("C:/test/input.txt")
loaded data can be seen as follows :
test_data
Rows: 10 Columns: 6
-- Column specification ------------------------------------------------------------------------
Delimiter: ","
chr (5): patient, handling, handling_id, registration_type, employee
dttm (1): time
i Use `spec()` to retrieve the full column specification for this data.
i Specify the column types or set `show_col_types = FALSE` to quiet this message.
> test_data
# A tibble: 10 x 6
patient handling handling_id registration_type time employee
<chr> <chr> <chr> <chr> <dttm> <chr>
1 Item1 Astart approved started 2021-12-06 02:00:00 NULL
2 Item1 Astart approved completed 2021-12-06 02:30:00 NULL
3 Item1 AB approved2 started 2021-12-06 07:00:00 NULL
4 Item1 AB approved2 completed 2021-12-06 09:00:00 NULL
5 Item1 APar approved3 started 2021-12-06 05:00:00 NULL
6 Item1 APar approved3 completed 2021-12-06 14:00:00 NULL
7 Item1 APar2 approved5 started 2021-12-06 05:00:00 NULL
8 Item1 APar2 approved5 completed 2021-12-06 14:00:00 NULL
9 Item1 AEnd approved4 started 2021-12-06 20:00:00 NULL
10 Item1 AEnd approved4 completed 2021-12-06 22:00:00 NULL
so when I try to view the data :
data(test_data)
I get the error :
Warning message:
In data(test_data) : data set ‘test_data’ not found
Ive tried a lot of suggestions on the net, nothing seems to work.
Thanks in advance.