Use rep(), seq(), replicate() and other built-in functions to create trial data sequences for your data frames, data tables, and matrices — Sometimes data is not available for access. But you may have patterns within the data that would be useful for experimenting with a calculation in your R programming script. For example, you can have a dataset that represents metrics that you know have certain qualities, such as miles per gallon…