Before you are able to input any of your texts into various stylometric programs, it's important that you take a step back and prepare your corpus by collecting all of your texts, organizing them into readable files, and removing any metadata.
Here is a comprehensive guide to doing just that: Preparing a Corpus for Textual Analysis
This step is especially important when using coding programs like R, since the functions won't work if your folders and files are not named correctly.
Stylometry looks at a variety of features of an author’s style such as:
Original Sentence:
“Happy families are all alike; every unhappy family is unhappy in its own way.”
A Word n-gram of size two (bigram):
"happy families" "families are" "are all" "all alike" "alike every" "every unhappy" "unhappy family" "family is" "is unhappy" "unhappy in" "in its" "its own" "own way"
Character n-gram of size three (trigram):
"h a p" "a p p" "p p y" "p y " "y f" " f a" "f a m" "a m i" "m i l" "i l i" "l i e" "i e s" "e s " "s a" " a r" "a r e" "r e " "e a" " a l" "a l l" "l l " "l a" " a l" "a l i" "l i k" "i k e" "k e " "e e" " e v" "e v e" "v e r" "e r y" "r y " "y u" " u n" "u n h" "n h a" "h a p" "a p p" "p p y" "p y " "y f" " f a" "f a m" "a m i" "m i l" "i l y" "l y " "y i" " i s" "i s " "s u" " u n" "u n h" "n h a" "h a p" "a p p" "p p y" "p y " "y i" " i n" "i n " "n i" " i t" "i t s" "t s " "s o" " o w" "o w n" "w n " "n w" " w a" "w a y"
Obviously, this can get a bit tedious if you try to do this by hand, so computational programs are the best resource.