R: How to change data in a column across multiple files. Help understanding lapply
问题 I have a folder with about 160 files that are formatted with three columns: onset time, variable1 'x', and variable 2 'y'. Onset is listed in R as a string, but it is a time variable which is Hour:Minute:Second:FractionalSecond. I need to remove the fractional second. If I could round that would be great, but it would be okay to just remove the fractional second using something like substr(file$onset,1,8). My files are named in a format similar to File001 File002 File054 File1001 onset X Y 00