I've got a large file that looks like this:
SAMPLE1 10
SAMPLE1 10
SAMPLE1 10
SAMPLE1 2
SAMPLE2 10
SAMPLE2 10
SAMPLE2 2
SAMPLE2 2
the file is huge (several gigabytes) and R is killed when I want to read the file and then useboxplot
. So my idea is to use sort | uniq -c
on my file and to use a much smaller file that would now look like this ( with a 3rd column containing the number of observations):
SAMPLE1 10 3
SAMPLE1 2 1
SAMPLE2 10 2
SAMPLE2 2 2
Is there a way to use base:boxplot
to plot such data ?