similar to: Optimize code to read text-file with digits

Displaying 2 results from an estimated 2 matches similar to: "Optimize code to read text-file with digits"

2017 Sep 08
0
Optimize code to read text-file with digits
Simplest version that I can think of: x <- scan("~/Downloads/digits.txt") x <- x[-seq(1,220000,11)] length(x) # 200000 hist(x) Now, because it's Friday: How does one work out the theoretical distribution of the following table? > table(table(factor(x,levels=0:99999))) 0 1 2 3 4 5 6 7 8 9 10 11 13497 27113 27010 18116 9122
2017 Sep 08
0
Optimize code to read text-file with digits
Hi see in line > -----Original Message----- > From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of Martin > Moller Skarbiniks Pedersen > Sent: Friday, September 8, 2017 10:49 AM > To: r-help at r-project.org > Subject: [R] Optimize code to read text-file with digits > > Hi, > > Every day I try to write some small R programs to improve my R-skills.