Corpus Linguistics and Statistics with R by Guillaume Desagulier
Author:Guillaume Desagulier
Language: eng
Format: epub
Publisher: Springer International Publishing, Cham
As you can see, nominal data converted easily into frequency counts . Thanks to the count() function from the plyr package, you can turn a whole table of nominal data into a frequency table in just one line of code. The variables to be summarized should be combined with c() in the vars argument of the count() function.
> library(plyr)
> freq.table <- count(data, vars = c("construction", "intensifier", "text_mode", "text_type"))
> freq.table
construction intensifier text_mode text_type freq
1 PREADJECTIVAL QUITE SPOKEN CONVRSN 2
2 PREADJECTIVAL QUITE WRITTEN ACPROSE 3
3 PREADJECTIVAL QUITE WRITTEN FICTION 4
4 PREADJECTIVAL QUITE WRITTEN NEWS 2
5 PREADJECTIVAL RATHER WRITTEN ACPROSE 21
6 PREADJECTIVAL RATHER WRITTEN FICTION 21
7 PREADJECTIVAL RATHER WRITTEN NEWS 6
8 PREDETERMINER QUITE SPOKEN CONVRSN 52
9 PREDETERMINER QUITE WRITTEN ACPROSE 5
10 PREDETERMINER QUITE WRITTEN FICTION 17
11 PREDETERMINER QUITE WRITTEN NEWS 18
12 PREDETERMINER RATHER SPOKEN CONVRSN 3
13 PREDETERMINER RATHER WRITTEN ACPROSE 2
14 PREDETERMINER RATHER WRITTEN FICTION 5
15 PREDETERMINER RATHER WRITTEN NEWS 2
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Cecilia; Or, Memoirs of an Heiress — Volume 1 by Fanny Burney(32023)
Cecilia; Or, Memoirs of an Heiress — Volume 3 by Fanny Burney(31438)
Cecilia; Or, Memoirs of an Heiress — Volume 2 by Fanny Burney(31382)
The Lost Art of Listening by Michael P. Nichols(7125)
We Need to Talk by Celeste Headlee(5394)
Asking the Right Questions: A Guide to Critical Thinking by M. Neil Browne & Stuart M. Keeley(5333)
On Writing A Memoir of the Craft by Stephen King(4646)
Dialogue by Robert McKee(4141)
Pre-Suasion: A Revolutionary Way to Influence and Persuade by Robert Cialdini(3954)
I Have Something to Say: Mastering the Art of Public Speaking in an Age of Disconnection by John Bowe(3760)
Elements of Style 2017 by Richard De A'Morelli(3224)
The Book of Human Emotions by Tiffany Watt Smith(3123)
Fluent Forever: How to Learn Any Language Fast and Never Forget It by Gabriel Wyner(2900)
Name Book, The: Over 10,000 Names--Their Meanings, Origins, and Spiritual Significance by Astoria Dorothy(2828)
Good Humor, Bad Taste: A Sociology of the Joke by Kuipers Giselinde(2812)
Why I Write by George Orwell(2755)
The Grammaring Guide to English Grammar with Exercises by Péter Simon(2636)
The Art Of Deception by Kevin Mitnick(2615)
Don't Sleep, There Are Snakes by Daniel L. Everett(2489)
