download_images: A function to download images from tweets.

Description Usage Arguments Examples

Description

This function allows you to download images that are part of a tweet and it also adds a new variable to the dataset indicating the id of the image in that tweet or "" if the tweet has no image

Usage

1
download_images(dataset, links_full_url, path)

Arguments

dataset

The name of your dataset.

links_full_url

A string indicating the name of the variable in your dataset that conatins full links to the images urls

path

Path to the directory where you want to store the images

Examples

1
2
3
4
5
 ## Not run: 
dataset_with_image_id <- download_images(dataset, "links_full_url",
   "path/to/a/directory")

## End(Not run)

CasAndreu/ccceR documentation built on May 6, 2019, 9:28 a.m.