This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.database.Cursor; | |
import android.support.annotation.Nullable; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.View; | |
import android.view.ViewGroup; | |
public abstract class RecyclerCursorAdapter<U, V extends RecyclerView.ViewHolder> extends RecyclerView.Adapter<RecyclerView.ViewHolder> implements OnSwipeListener { | |
//The number of headers to be displayed by default if child classes want a header | |
public static final int HEADER_COUNT = 1; | |
//The number of footers to be displated by default if child classes want a footer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Identifying the differences between using a Corpus dictionary, and a vector of strings. | |
## --------- | |
## Using a Corpus dictionary | |
## and type == "prevalent" | |
tm::stemCompletion(x = stemDocument(w), | |
dictionary = Corpus(x = VectorSource(x = w)), | |
type = "prevalent") | |
# intersect intersect intersect intersect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(data.table) | |
library(dplyr) | |
library(sp) | |
library(rgeos) | |
library(UScensus2000tract) | |
library(geosphere) | |
library(geodist) |