Displaying 20 results from an estimated 7000 matches similar to: "Read.Table Reading a Text file"
2004 Oct 08
1
reading partial file content
hi,
I'd like to extract data from very large files (ca 1-2 Mio lines),
and I already know which lines of these files I need.
Is there a way to do it without filling the memory with the whole file content?
The lines I need are randomly distributed within the files.
Thanks,
Marc
-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at
2004 Oct 27
2
Random number
Dear R- User
I created two random number sets using rnorm function and calcuted their respective means. However now I would like to randomly
replace some values with NA. Thus create my own test data.
Any help or suggestions on this ?
Also wanted to confirm when multiplying two random number vectors x am y by matrix..is this how i do it.
A is the matrix
z <- c(x,y)
2004 Oct 07
4
Re:How to create a R -application
Dear R- users and Helpers
I am a beginner for R. I am using R to implement EM algorithm for treating Missing values. I would like to know how can save or compile my logical R commands to an application; so that the next time I could just execute the R- file.
Example for calculating the mean of a data set
x <- c(8,11,16,18,6,4,20,25,9,13)
u <- mean(x)
u
Now I would like to save
2004 Oct 28
2
array problem and for looping
An embedded and charset-unspecified text was scrubbed...
Name: not available
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20041028/dbf887a9/attachment.pl
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: random1.txt
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20041028/dbf887a9/random1.txt
2004 Oct 13
1
Maximum Likelihood :- Log likehoood function
Dear R - users/Helpers
I am dealing with bivariate Normal data with missing values. Further I am trying to implement Expectation-Maximization (EM) algorithm to resolve the missing data problem.
Now one of the requirements is use the Log likehood function i.e -2Log so as to find a reliable convergence....
My question is there any R built function for the same or do i have to use the
2011 Feb 25
6
group by in data.frame
Hi all,
i have a little problem, and i think it is really simple to solve, but i
dont know exactly how to.
here is the "challange":
i have a data.frame with n colum, i have to group 2 of them and calculate
the mean value of the 3. one. so far so good, that was easy - i used
aggregate function to do this:
group<-aggregate(x[,1],list(x[,2],x[,3]),mean)
and now i have to copy the
2004 Oct 25
1
Ref: Variable scope or function behaviour or array reassign
Dear R- helpers
Following a draft structure of the R script for which I am facing problem
Step 1
x <- of type array with original values
y <- of type array with original values
Step 2
for (ctr in 1:10) {
# my problem here the both x and y still show the original values from step 1
# in spite of making changes to the old values of the arrays x and y in the function
function
2005 Apr 02
1
Survey of "moving window" statistical functions - still looking f or fast mad function
Hi,
First, let me thank Jaroslaw for making this survey. I find it quite
illuminating.
Now the questions:
* the #1 solution below (based on cumsum) is numerically unstable.
Specifically if you do the runmean on a positive vector you can easily
get negative numbers due to rounding errors. Does anyone see a
modification which is free of this deficiency?
* is it possible to optimize the
2008 May 31
2
tolstoi.newcastle dead?
Anyone know what's up w/ tolstoi.newcast.edu.au (home of the threaded
R-help archives)? I've got a "can't connect" for several days now.
Carl
2005 Mar 02
5
Differences between package and library terminology
Just out of curiosity, what is the difference between the terms for
package and library ? Why are we loading a package with the library()
command ?
If this is a case of RTFM, I would be happy to do so if pointed in the
right direction. I have searched the FAQ and mail archives and only came
up with http://tolstoy.newcastle.edu.au/R/help/05/02/12162.html but this
still does not explain what is
2007 Jul 26
2
Creating windows binary R package (PowerArchiver vs. zip -r9X)
Hi list,I apologize if you see funny fonts, b/c I'm using the new Windows Live Hotmail and don't know how to turn off the "rich text" mode.....I have successfully built and installed a R package in windowsXP for R-2.5.1. But when I tried to create a .zip file so I can use "Packages/install package(s) from local .zip files..." to install it, it seems R only recognizes
2010 Feb 17
2
multi-argument returns
Dear R users,
I have multi-argument returns in a function and I am warned by the program
they are deprecated.
I have found this in the R-help archives :
http://tolstoy.newcastle.edu.au/R/help/01c/0319.html
http://tolstoy.newcastle.edu.au/R/help/01c/0356.html
Since I am not too good at programming, the list solution seems the better
one for me. It is also the one advocated by Kevin Murphy.
So
2005 Nov 16
1
RODBC help
I am using the RODBC package to read data from an Excel file. An excerpt of
the file looks like this:
00103V206 AES Corporation 6.00% 42.87
00808N202 AES Trust III 6.75% 34.98
03748R861 Apartment Investment & Management 9.00% #ERROR (I)
039380209 Arch Coal, Inc. 5.00% 61.51
My problem appears to be related to specification of data types by column.
For instance, the CUSIPS in column 1 are
2007 Sep 10
3
plot legend: combining filled boxes and lines
Hello,
I have difficulties combining boxes and lines in plot legend. I
searched previous R-posts and found this (with no solution):
http://tolstoy.newcastle.edu.au/R/help/06/07/30248.html. Is there a
way to avoid boxes behind the line legends?
x1 <- rnorm(100)
x2 <- rnorm(100, 2)
hist(x1, main = "", col = "orange",ylab = "density", xlab = "x", freq
=
2008 Jan 11
3
Is R on Windows multi-threaded
Hi,
A previous thread suggests that R on Windows is multi-threaded
http://tolstoy.newcastle.edu.au/R/help/03b/6946.html
When I'm running R 2.5.1 on a dual core pc I get Rgui.exe uses up to 50%
of the available cpu and the rest is not used. i.e. it only uses one
cpu. I'm soon going to get a nice shiny new 8 cpu machine which it would
be very nice to fully utilize.
Is there any way to
2004 Nov 11
3
R "sumo" package suggestion
r-help:
I have an R package suggestion. After spending
several hours the other day installing about a dozen
packages, I had an idea. In xemacs, there is a
"sumo" package which allows me to install a large
bundle of xemacs packages at one time (about a 120
modes including ESS). I think R should have a
similar bundle. It would be so much easier than
hunting/downloading/installing.
2008 Nov 25
1
Rendering Dendrograms
Hello all
I've been using the hclust and as.dendrogram objects for hierarchical
clustering. The problem I have is that my sample set is now so large (circa
500 points) that it isn't possible to view the leaf nodes.
I'd like to be able to zoom in on specific areas of the graph by selecting
a
region with the mouse. I've deduced from trial and error that the xlim and
ylim
2007 Mar 20
6
Select the last two rows by id group
Hi R-users,
Following this post http://tolstoy.newcastle.edu.au/R/help/06/06/28965.html ,
how do I get last two rows (or six or ten) by id group out of the data
frame? Here the example gives just the last row.
Sincere thanks,
Lauri
[[alternative HTML version deleted]]
2018 Jan 19
7
how to search r-help?
I am new to this listand am unable to get the search tools listed on
https://stat.ethz.ch/mailman/listinfo/r-help towork. What do people use
to search the help archives?
1. The google search box on http://tolstoy.newcastle.edu.au/~rking/R/
returns a 404 error.
2. The http://finzi.psych.upenn.edu/ site has many references but I
don't see how to search r-help from there.
3. The
2007 Jan 19
2
Cross-compile errors under R-2.4.0 and R-2.4.1
Dear all,
I already posted a question regarding this to an existing thread:
http://tolstoy.newcastle.edu.au/R/e2/devel/06/10/0852.html#start
I apologize for the double posting but I have some further information
that might be illuminating.
I am trying to cross-compile my R-package under ubuntu linux, kernel
2.6.17-10-generic, on an IBM T60.
I am following the suggested steps in