Displaying 20 results from an estimated 3000 matches similar to: "read.table"
2011 Apr 13
5
Clearing Console; of weeks of codes!
Dear All:
I do see I have weeks of codes in my console when I check with my arrow up
keys. I have been clearing them with Control L but it seems to clear it
clear the screen temporally. I do see the previous codes again when I open R
the next day, after quitting the session!
Q:
How do I clear this?
Thanks;
YA
--
View this message in context:
2010 Aug 27
3
predict.loess and NA/NaN values
Hi!
In a current project, I am fitting loess models to subsets of data in
order to use the loess predicitons for normalization (similar to what
is done in many microarray analyses). While working on this I ran into
a problem when I tried to predict from the loess models and the data
contained NAs or NaNs. I tracked down the problem to the fact that
predict.loess will not return a value at all
2011 Mar 08
4
beamer overlays with Sweave?
This may be asking too much, but I'm wondering if anyone has a
solution (even a hack) for creating multiple (overlay) plots in an
Sweave file and post-processing the overlays in beamer appropriately.
For example, suppose I have a series of figure blocks in my .Rnw file:
<<plot1,fig=TRUE>>=
[stuff]
@
<<plot2,fig=TRUE>>=
[stuff]
@
<<plot3,fig=TRUE>>=
2010 Aug 05
6
64-bit R on 64-bit Windows box... Still not enough memory?!
I have a 64-bit windows box -
Intel Xeon CPU E7340 @ 2.4GHz 31.9GB of RAM
I have R 2.11.1 (64bit) running on it.
My csv data is 3.6 GB (with about 15 million obs, 120 variables.)
------------------------------------------------
I have successfully imported the data above into R. No problem.
Now I am trying to run 'rpart' on my data. But I got the following error :
Error: cannot
2011 Apr 08
3
xyplot, groups and colors
Dear ExpeRts,
I am trying to plot a bunch of growth curves and would like to get
some more control over groups and line colors than I seem to have.
Example:
# make some data
dat <- Orange
dat$group <- ifelse(dat$Tree%in%c('1','4','5'), 'A', 'B')
# plot
xyplot(circumference~age, dat, groups=group)
# now use lines to make the growth curve more
2011 Apr 19
5
Simple Missing cases Function
Dear all
I have written a function to perform a very simple but useful task which I
do regularly. It is designed to show how many values are missing from each
variable in a data.frame. In its current form it works but is slow because I
have used several loops to achieve this simple task.
Can anyone see a more efficient way to get the same results? Or is there
existing function which does
2011 Apr 27
1
read.table: fill=T for header?
Dear ExpeRts,t
I am trying to read tab delimted data produced by somewhat brain dead
software that seems to think it's a good idea to have an extra tab
character after the last column - except for the header line. As
explained in the help page, read.delim now assumes that the first
column contains the row.names (which is not even wrong) but now and all
col.names get shiftet by one column.
2011 Mar 29
7
Using graphics straight from R into published articles
Hi,
I have been working with R for the past couple of years; analyzing data and
producing some graphics.
I was just wondering if people use graphics from R straight into articles or
are they always edited in some way; fonts, headers, axis, color etc? Using
photoshop or some other programs?
I would like to think it is possible, better and more profession to do it
all in R.
I tried google and
2010 Oct 15
1
Help with R
Dear Sir/Madam;
I'm not sure whether this is the correct contact for help.
I've been recently working with R on my project, unfortunately It sudenly crashes!
It gives me the following message:
"FATAL ERROR: unable to restore saved data in .RDATA"
I decided to uninstall the copy (a R2.11.0) and installed a new version (2.11.1) but I'm still receiving the same message. When I
2010 Oct 23
1
Change column of numbers in data frame to days
Hello,
I have seen a few posts about changing a vector of numbers to days of the
week where the numbers are 1-7. I have a similar problem with a twist.
I have a vector of numbers ranging form 20 to 500. The numbers represent
days since a starting point. The list is not consecutive, some numbers
skipped and some numbers duplicated. I know day 1 was a Monday. I want to
use this vector in a lm
2010 Nov 24
4
shifting down ylab in a plot
Hi guys,
I am trying to shift down the "ylab" of my plot but can't find how to do it.
I tried to tune "mar" but it enable more room for the labels to be displayed
but it does not move to "ylab" as I would like.
Is there a way with "par" to shift down my "ylab" ??
Cheers
--
View this message in context:
2011 Feb 08
2
as.Date
Hi everybody,
I have a strange behavior of the as.Date() function. For example:
as.Date(36525, origin="1900-01-01'")
I would expect to get 2000-01-01. But R gives me
[1] "2070-01-01"
I tried with several origins but the results are still the same. It
seems that the origin does not apply and remains 1970-01-01.
Does anyone can give me a hint how to
2011 Feb 14
2
saving plots
Hi all,
Is there a way to save the currently displayed plot to an image format just
after we view it?
I think this would be more intuitive as a user if I wish to save it just
after I visualize the plot.
I am aware that we need to do some thing like this
jpeg('somefilename.jpg')
... plot... commands...
dev.off()
KM
[[alternative HTML version deleted]]
2011 Feb 21
1
fitting logit to data
Hello,
I'd like to fit a logit function to my data.
The data is distributed like a logit (like in this plot on wikipedia http://en.wikipedia.org/wiki/File:Logit.png)
but the values on the x-axis are not between 0 and 1.
I don't think using a glm is the solution because I simply want to
infer the parameters of the logit function
(offset, compression, slope...), so I can apply it to all
2011 Mar 25
1
Magic Number Error Message
Hi all,
When I attempt to run a script, I keep getting the error message shown
below. I have seen from searching that the "Use of save versions prior to 2
is deprecated" could be an error resulting from a permissions problem, but I
have been unable to find anything describing the "file has magnic number '#
Coh'". The file I am attempting to read into the script is a
2011 Mar 29
3
Reversing order of vector
Dear R helpers
Suppose I have a vector as
vect1 = as.character(c("ABC", "XYZ", "LMN", "DEF"))
> vect1
[1] "ABC" "XYZ" "LMN" "DEF"
I want to reverse the order of this vector as
vect2 = c("DEF", "LMN", "XYZ", "ABC")
Kindly guide
Regards
Vincy
[[alternative HTML
2011 Mar 31
1
one question about bioconductor
dear lady and gentalmen:
i am gaoshan from kansas university.
i used such coding to deal with gel data
data <- ReadAffy()
Warning messages:
1: In file(out, "wt") :
cannot open file
'C:\Users\gaoshan\AppData\Local\Temp\RtmpvsyXOV\Rhttpd3f0b2e85': No such
file or directory
2: In file(out, "wt") :
cannot open file
2011 Apr 05
1
Saving console and graph output to same file
Hello All,
How do I save the output of the R console and the graphic output to the same
PDF file and append these to each other?
I need to have a frequency table and a corresponding graph, one below the
other in a file. I have tried with sending the cross table to the graph
window using 'textplot' and then saving the graphic output. However, the
table does not look nice in the graph
2011 Apr 14
1
Hash table...
To improve the efficiency of a process I am writing I would like to cache
results. So I would like a data structure like a hash table.
So if I call Z <- f(Y) I can cache Z associated with Y: CACHE[Y] <- Z
I am stumped. I expected to be able to use a list for this but I cannot
figure how....
cheers
Worik
[[alternative HTML version deleted]]
2011 Apr 18
4
(no subject)
Hai
From which CRAN mirror can get the package ‘LPP2005REC’
Ram
[[alternative HTML version deleted]]