R function not returning values

To return df, simply write return(df): IMDBmovierating <- function(movie){ link <- paste(“http://www.omdbapi.com/?t=”, movie, “&y=&plot=short&r=json”, sep = “”) jsonData <- fromJSON(link) df <- data.frame(jsonData) return(df) } or, even simpler in this case, omit the last assignment: IMDBmovierating <- function(movie){ link <- paste(“http://www.omdbapi.com/?t=”, movie, “&y=&plot=short&r=json”, sep = “”) jsonData <- fromJSON(link) data.frame(jsonData) } If the last expression … Read more

Java: How do I create a movie from an array of images?

The solution seems to be to use Mencoder (or at least, that seems to be a semi-popular choice). Here’s a link that specifically addresses images-to-movies capabilities in Mencoder. As for rendering text onto the frames before encoding them as part of the video, you can use Java2D’s image manipulation libraries to simply draw text on … Read more