Dealing with data 2

Owen L. Petchey, Andrew P. Beckerman, Natalie Cooper, Dylan Z. Childs · 2021

Abstract In this chapter we go through some miscellaneous R topics, all of which you experienced briefly in the bat diet workflow demonstration. These include pipes, a mechanism for moving data from one operation to another; strings, how words and text are represented in computers using ‘stringr’; dates and times, until recently a proper pain anywhere on a computer, but now much simpler and straightforward to deal with, using the lubridate package; and pivoting, changing data from long to wide format, and wide to long, using the ‘pivot_longer’ and ‘pivot_wider’ functions in the tidyr package.

Read the paper · More papers on PaperTik