I'm sure this is a really simple problem, but I've spent hours digging and I
keep running into roadblocks.
I'm trying to get a simple chart with three time series. Similar to the
attached example
http://www.nabble.com/file/p25398419/Excel%2Bchart%2Bexample.pdf
Excel+chart+example.pdf , somethin
Thanks - that works great.
Do you have any suggestions about the grid() problem - i.e. that the
vertical gridlines do not line up with the x-axis tickmarks (which are
years)?
I can't see on what basis the vertical gridlines are being positioned, but
it doesn't look good that they are not lined u
At the risk of stating the obvious:
- rm(.) # clears specific objects out of memory as soon as they're no
longer needed in the routine.
- sapply(ls(), function(x) object.size(get(x))) #lists all objects with
the memory each is using.
- rm(list=ls()) #clears out all objects, e.g. be
Hi Petr,
Thanks for these comments.
I'm sorry that my post was not clear. I was referring to the questions in
my original post/code/file uploads, but I had forgotten to include an
updated file (now attached
http://www.nabble.com/file/p25304663/Post%2Btrial%2Bdata.csv
Post+trial+data.csv ) to w
xis formatting being fixed) is:
testdata<- c("C:\\Files\\R\\Sample R code\\Post trial data.csv")
new_data<- read.table(testdata, skip = 0, sep = ",", na.strings =
"na",header = TRUE)
x11(width=16, height=7, pointsize=14)
boxplot(new_data,outline = FALSE, col = c("
Hello,
I have been having difficulty getting boxplot to give the output I want -
probably a result of the way I have been handling the data.
The data is arranged in columns: each date has two sets of data. The number
of data points varies with the date, so each column is of different length.
I
Hi Matej,
You can also try:
sapply(ls(), function(x) object.size(get(x)))
or
eapply(.GlobalEnv, object.size)
which list all objects - as with ls() - but giving their sizes.
I'm also quite new to R so am not sure which other properties you could hope
to get out of it, but by substituting an
Thanks to everyone who has posted. These posts have really helped me to
budge forward my understanding of R, as well as giving me a couple of new
areas that I still need to work on.
These (below) won't be news to the people who have posted, but for anyone
who is in my position, here are a couple
Thanks - that's great. A combination of "object.size", "rm" and "gc" seems
to be enough for me to work out what was causing the problem and then get
beyond it.
In particular, using "rm" on the result of the multiple regression seems to
make a big difference: it wasn't obvious to me before, but o
Hello,
Is there a command for freeing up the memory used by R in holding data
tables?
The structure of the procedure I have is as follows:
1) Read multiple txt files in using read.table(...).
2) Combine the read tables using rbind(...).
3) Attach the data using attach(...) and then use do a
Hello,
I have been using a very simple rbind approach (simple enough for me to
understand) to combine data files within R.
It seems to work fine, but then generates warning messages for reasons that
I can't begin to understand. The text below shows the issue.
testread12=read.table("C:/Files/
Thanks David - you're right, "PC" is not very informative. I am using XP
Home with 4GB, though I don't think XP accesses more than 3GB.
>From following through the FAQ's and memory functions (e.g.
"memory.limit(size = NA)") it looks like R is getting about 1535Mb at the
moment.
David Winsemius
Hello,
I have been using read.table to read data files into R, then rbind to
combine them into one table. The column headings are all identical, so it
should be straightforward, and it seems to be working well so far.
My question is: What is the maximum number of tables that can be combined
wit
Hello,
First of all, I'm new to R and I don't have anyone who already knows the
language to ask for tips, so please excuse my ignorance.
I'm trying to download data direct from the Federal Reserve statistics
website and graph it, using the following:
#This downloads the data from the Fe
14 matches
Mail list logo