add_links_url: A function adds 2 variables in the datset with the...

Description Usage Arguments Examples

Description

A function adds 2 variables in the datset with the "shortened" and "complete" links in the messages

This function takes the text message in tweets and looks for urls in them. Then in creates 2 variables "links_short_url" and "links_full_url" to the datset with the links to those urls.

Usage

1
add_links_url(dataset, var_text)

Arguments

dataset

The name of your dataset.

var_text

A string indicating the name of the variable in your dataset that conatins text messages.

Examples

1
2
3
4
 ## Not run: 
dataset_with_links_urls <- add_links_url(dataset, "Contents")

## End(Not run)

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