Displaying 20 results from an estimated 300 matches similar to: "Combining files"
2002 Jan 18
2
length of dimnames???
Hi:
I have made a lot of progress reading and manipulating large data
files, thanks to the help of several of you. I am now stuck with
writing the final file with the following error (see also the full
transcript below):
Error in as.matrix.data.frame(x) : length of dimnames[2] not
equal to array extent
I do not know what it means and could not find how to get around that
in the manual nor
2002 Aug 19
2
Help with Lattice
Hi:
I have started to use Lattice two days ago and find that it is an
outstanding package. I am, however, stumbling on two problems,
despite the fact that I have read the help pages as well as two pdf
documents on Trellis that I found on the web.
1- I want to remove the ticks on the top and right sides of the
panels and did not see any option in "scales" to do so.
2- I would like
2002 Aug 21
2
More help with Lattice
Hi:
Thanks a lot to Deepayan Sarkar, author of lattice I think, who
solved my first query. I am afraid that I have another one.
I am plotting several mutipanels boxplots (with one conditioning
variable) on one page. The x, y and conditioning variable are all
continuous variables. The x and conditioning variables are
transformed to shingles before being plotted. The plot looks nice but
there
2003 Sep 09
2
Making R packages (Unix)
Hi:
I have have taken over from a colleague who
prepared an R package and failed to build it on
Windows. I am doing this with unix as I am a mac
user. Below is the output I get when I use the
build command:
[gattuso:unix/R/CO2.Rcheck] gattuso% R CMD build CO2
* checking for file 'CO2/DESCRIPTION' ... OK
* preparing 'CO2':
* checking whether 'INDEX' is up-to-date ...
2003 Sep 09
6
Making R packages
Hi:
I am posting this message for a colleague who has
a lot of trouble to build an R package on
Windows. He did not find a solution to his
problems on the R-help archives and hopes that
one of the R gurus will be able to help.
He has a directory "CO2" which should contain all
the required files and directories:
DATA:
DESCRIPTION
MAN:
R:
README
SRC:
The following command is
2006 Aug 24
1
Lattice symbol size and legend margins
Hi:
I am using the following command:
xyplot(dat6$CO3*1e6 ~ dat6$irradiance, data=dat6, group=ref,
xlab=list(label=expression(paste("Irradiance (", mu, "mol photons",
m^"-2", " ", s^"-1", ")")), cex=1.3),
ylab=list(label=expression(paste("Carbonate concentration (x ", 10^"6",
" ", kg^"-1",
2005 Aug 08
1
Reading large files in R
Dear R-listers:
I am trying to work with a big (262 Mb) file but apparently reach a
memory limit using R on a MacOSX as well as on a unix machine.
This is the script:
> type=list(a=0,b=0,c=0)
> tmp <- scan(file="coastal_gebco_sandS_blend.txt", what=type,
sep="\t", quote="\"", dec=".", skip=1, na.strings="-99", nmax=13669628)
2007 Jul 23
1
Error using Rd2dvi on OSX
Hi,
I run R 2.5.1 on Mac OS 10.4.10 and fail to build a package manual.
Below is the transcript. The problem is a "pdflatex: command not found"
error but I think that I have a fully working latex install (installed
with iInstaller) as I use TeXShop with no problem.
Could someone help?
Jean-Pierre
-----------------------------------------------------------------------------
2005 Jan 23
5
How to use "identify"
I can't get identify to work, using R 2.0.1 under windows xp pro,
service pack 2. Here's what I enter, and the result:
> plot((our.frame2$c1),(our.frame2$c9)) # Produces desired plot
> identify(our.frame2$c1) # Plot comes to forefront, so I select a point
warning: no point with 0.25 inches
numeric(0)
Is my call to identify correct? The help page for indentify (from
2005 Oct 09
3
cor doesn't accept na.rm? (PR#8193)
Full_Name: Paul Bailey
Version: 2.1.1
OS: OS X 10.3
Submission from: (NULL) (68.252.250.144)
?cor
[tells me that it has a na.rm variable]
> cor(frame2[1,],frame2[2,],na.rm=T)
Error in cor(frame2[1, ], frame2[2, ], na.rm = T) :
unused argument(s) (na.rm ...)
hmm.
2012 Jan 14
3
add column with values found in another data frame
I am positive this problem has a very simple solution, but I have been
unable to find it, so I am asking for your help. I need to know how to look
something up in one data frame and add it as a column in another. If I have
a data frame that looks like this:
> frame1
ID score test age
1 Guy1 10 1 20
2 Guy1 13 2 20
3 Guy2 9 1 33
4 Guy2 11 2 33
and another frame that looks like this:
2007 Aug 14
2
Question about unicode characters in tcltk
hello list,
Can someone help me figure out why the following code doesn't work?
I'm trying to but both Greek letters and subscripts into a tcltk menu.
The code creates all the mu's, and the 1 and 2 subscripts, but it
won't create the 0. Is there a certain set of characters that R won't
recognize the unicode for? Or am I input the \u2080 incorrectly?
library(tcltk)
m
2005 Aug 12
2
coercing created variables into a new data frame using na.omit()
Hi,
I am an R newbie and one thing I am having trouble with binding variables that
I have created within one data frame into a new data frame when using
na.omit(). To illustrate this problem I will give the example I am working on
and the approah I have been using:-
data.frame1<-filepath....
attach(data.frame1)
#create a new variable using a function
new.variable<-rep(1,length(weight3))
2011 Apr 05
2
Help to check data before putting it in a database
The example scene:
I have a database with stats about each goal made by my soccer team. This
database (a data frame in R) is organized in lines (goals) with a set of
columns containing data about these goals (player name, tactic position,
etc). For now, this database will be called "data.frame1".
What I need is to feed this "data.frame1" with new information about my team
2006 Oct 16
3
lda
I'm trying to do a linear discriminant analysis on a dataset of three
classes ("Affinities"), using the MASS library:
> data.frame2 <- na.omit(data.frame1)
>
> data.ld = lda(AFFINITY ~ ., data.frame2, prior = c(1,1,1)/3)
Error in var(x - group.means[g, ]) : missing observations in cov/cor
What does this error message mean and how can I get rid of it?
Thanks!
Pieter
2010 Jan 20
1
Merge and join data
Hi,
I'm looking to combine two data frames. Several of the columns are in
common while the others need to be summed up. The apply functions and
the merge functions don't seem to be working. I've included a basic
example of what I'm trying to do below. Thanks!
Sean
data.frame1<-as.data.frame(matrix(c('winter','dredge','515',100,150),1,5))
2013 Feb 13
3
match in dependence of 2 columns
Hello,
i want to match a column of one data.frame to another, my problem is, that i
only want to match the data, if 2 columns are equal.
i have a example:
data.frame1
cu.nr. name value
A 1 Evo 100
B 1 Mer 80
C 2 Ford
2007 Jun 13
1
how to optionally include variables in a data.frame at assignment
I am creating a data.frame inside a function and the set of variables
to include depends on the current value of other variables. Is there
a way to accomplish this in the original assignment? Or must I first
create the core data.frame with the variables I always want and then
use if blocks to add other variables?
Basically, I'm hoping for something like this (which does not work):
2005 Jul 26
1
error with scan
Hi:
I am trying to read a large (500000+ lines) with scan() as read.table
is unable to read it.
I get a strange error (below) which says that 'a real' was expected
and '5' was read. Can someone help?
Thanks,
jp
> type=list(a=0,b=0,c=0,d=0,e=0,f="",g=0,h=0,i=0)
> tmp2 <- scan(file="tmp2.txt", what=type, sep=",",
2004 Aug 06
1
auto-detection of frame boundary
I tried feeding in the 3 encoded frame in ONE BLOCK, and calling speex_decode() 3 times in a roll. Only the 1st frames came out perfectly. For the other 2, I got "corrupt" frame warning.
I was supposed to get 38 bytes consumed each frame (narrow-band, VBR off). I tried speex_bits_remaining() to peek on the # of bits consumed, and got variable (clearly wrong)#s returned.
But if I