[R] Vector allocation problem while trying to plot 6 MB data file
Uwe Ligges
ligges at statistik.tu-dortmund.de
Fri May 3 23:36:24 CEST 2013
On 02.05.2013 14:37, Ramon Hofer wrote:
> Hi all
>
> I'm trying to analyse the network speed and used iperf to create a csv
> file containing the link test data. It's only about 6 MB big but
> contains about 40'000 samples.
>
> I can do boxplots (apart from printing the number of samples but I ask
> separately for that).
>
> To find the behaviour over time I wanted to plot the throuphput. So I
> have this command:
>
> plot(A$Timestamp, A$Bandwidth.bit.sec., xlab = "Timestamp", ylab =
> "Bandwidth [bit/s]", ylim = quantile(A$Bandwidth.bit.sec., c(0, .99),
> na.rm = TRUE))
>
> Unfortunately I get this:
> Error: cannot allocate vector of size 12.5 Gb
40000 samples and 6MB can't be the issue unless this is not a regular
plot but the classes of A$Timestamp or A$Bandwidth.bit.sec are rather
special.
What do
str(A$Timestamp)
str(A$Bandwidth.bit.sec.)
tell us?
Can you make a reprducible examples available?
Best,
Uwe Ligges
> Is there a way around this problem or will I have to split the data?
>
>
> Best
> Ramon
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
More information about the R-help
mailing list