The input fn() method can be used to generate an input function from a R data frame. Feature and response variables can be specified either explicitly or using the R formula interface. It's worth noting that the input fn functions offer a number of options for influencing how data is pulled from the input source.