I have a data frame with time series values. The time stamp column is formatted as
> trial_sub$time[8:15]
[1] "500.0008" "500.0009" "500.0010" "500.0011" "500.0012" "500.0013" "500.0014" "500.0015"
When I try to export the data frame as a csv, no matter which method I try, the trailing zeros seem to get dropped:
> print(trial_sub_new$time[8:15])
time
8 500.0008
9 500.0009
10 500.001
11 500.0011
12 500.0012
13 500.0013
14 500.0014
15 500.0015
This messes up the cross-validation.
How can I export a csv with the zeros at the end?