similar to: Interpreting message: Error in names<-.default(*tmp*, value = cols) :

Displaying 20 results from an estimated 10000 matches similar to: "Interpreting message: Error in names<-.default(*tmp*, value = cols) :"

2001 Aug 28
2
using by to plot
Hello, I would like to use by to create a series of plots, but I'm not sure how to design the function. Here's what I've got: 1. A data frame of observations of measured value 2 measured vlaues and a pch code. V1 V2 pchCode .0045 123 1 .0034 145 2 .0045 123 1 .0046 167 3 ... So what I want to do is create a single scatterplot of the multiple conditions (specified by
2001 Oct 29
2
write a bunch of objects to files
Hello all, I've got a bunch of objects I'd like to write to .csv files. For example, I have objects conveniently called n002.csv n001.csv p103.csv . . . I tried a loop: > for(i in ls(pattern="csv")) +write.table(i, file=i, sep=",", quote=F) That, of course, wrote out a bunch of files that contained x 1, n002.csv Or the like. How can I get i in the loop above
2001 Sep 24
1
need help creating means table
Hello, I have been trying to use by to create a means table, but receive the error " by(xx, list(subjs, cons, vowels), mean) Error in Summary.data.frame(..., na.rm = na.rm) : only defined on a data frame with all numeric or complex variables" when the data frame consists of three factor columns (subjs, cons and vowels) and 5 numeric data columns. The output I'm looking for is a
2001 Jul 19
2
classification tree out put
Hello, I'm attempting to classify data using tree(). summary(tree()) indicates that I have a very good classification rate. What I'd like to know is which tokens in the data set are correctly classified and which are not. Is there a method for associating the classification with the token? I've been reading Chambers and Hastie (1992) chapter 9 on tree-based models, but find no
2001 Nov 27
2
printing captions in multiple panes
Dear List, I would like to add captions to a set of graphics. The graphs are each composed of two scatter plots in an upper and lower pane. I'd like to add a caption below the lower pane. The troubel I'm hitting is that in order to fit the caption using mtext, I must increase the margins for both panes-- these shrinks my plots considerably and leaves a big blank area. The second trouble
2001 Aug 24
3
matching character substrings
Hello, Is there a function for searching a string for a given character? For example, I have transcriptions like tsibi tSibi tibi kibi I want to search the character object for the presence of 's' or 'S' or 'k'. I thought perhaps pmatch(c("k", "S", "s"), x) would work for me, but it wants to compare from the start of the string and returns
2001 May 06
2
how to use by() and hist()
Hello, I'm using R 1.2.2 on Sun Solaris. I have data frame with 4 levels of factor "type". See the example data frame below. type token variance 20 ku n031ku10.10msmeanc 77199422 21 ku n031ku11.10msmeanc 55682249 22 ku n031ku12.10msmeanc 52003965 23 ti n031ti01.10msmeanc 54511040 24 ti n031ti02.10msmeanc 58940197 25 ti n031ti03.10msmeanc
2001 Mar 30
2
discriminate analysis
Dear List, I'd like to run a discriminate analysis on a data set, but have no idea how to go about this in R. I have attempted to locate info in the manuals, but may not be consulting the right sections or documents. Can anyone point me to appropriate documentation if such exists. Many thanks, David S. David White sdavidwhite at bigfoot.com Columbus, Ohio
2001 Jul 20
4
plotting dendrograms
Hello, Can anyone offer any insight on graphing classification dendrograms with the nodes marked? plot(tree()) produces a nice tree structure but there's no acccompanying text. Thanks, D S. David White sdavidwhite at bigfoot.com Columbus, Ohio -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read
2001 Apr 20
1
attaching packages
Hello, I have downloaded and installed e1071_1.1-0.tar.gz, my first add-on package. Because I am not the sys admin I installed it to my own home dir under ~/.R/library/ I read in the faq that I should make changes to the R_lib env variable in my .bashprofile or .Renviron files to make the new personal library components available. Unfortunately neither of these exist in my home dir. Can anyone
2001 Apr 26
1
list.files wildcard
Hello all, I have a simple question: I have filenames that look like these: "n031ku09.10msmeanc" "n031ku10.10msmeanc" "n031ku11.10msmeanc" [22] "n031ku12.10msmeanc" "n031ti01.10msmeanc" "n031ti02.10msmeanc" I also have a set of the same without the "c" at the end. When I run list.files(".",
2001 May 05
1
naming data.frames after their source file
Hello R-list, I have a batch of files that I want to turn into R data.frames for analysis. I'd like to use a for loop to read.table into data frame and name the data.frame after the source file. Here's the code I've tried: files_list.files(".") for(i in 1:length(list.files("."))-1){ parse(text=files[i])[[1]]_read.table(files[i],as.is=TRUE) } AFIK, the problem
2001 May 07
2
indexing a vector
Dear R-List, How can one look up the row/column number for a given value in a matrix or data.frame? For example in a matrix that contains only unique values for in [,1] how can I find value x in [,1] and report its row number? TIA, David S. David White sdavidwhite at bigfoot.com Columbus, Ohio -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list
2001 May 07
1
unexpected breaks in hist
Hello R-list, I've been using hist to plot histograms of some data, but I get variable numbers of bins. I understood from reading the help file that breaks will set the number of bins. Please correct me if I'm wrong. I'm plotting measures from subsets of a larger data set. Depending on the data subset the number of bins varies despite having set breaks to 5 in all cases. See
2001 Dec 21
0
read.table and as.vector (Was error message: "Error in model.frame")
Hi all, I figured out some things about an earlier question I posted today; this is a new question: I have a for-loop in which I have the following lines for (i in list.files(pattern = "*.dmp")) { currentfile <- read.table(i) vecrawrts <- as.vector(currentfile$V3) ... } Now, vecrawrts is numeric, but if I run the script on all the files with extension .dmp, I get the
2001 Dec 20
0
error message: "Error in model.frame"
Hi all, All the files related to the question below are in http://ling.ohio-state.edu/~vasishth/TempRdir/ I've been using a script (called newresiduals.R, the code is in the above directory; I wanted to avoid cluttering up this message) that is run in the following manner at the command prompt: R --vanilla "wordlen-2-01-g1" < newresiduals.R What it does is: it goes through a
2001 Dec 15
1
subset error message
Hello everybody, I'm trying to subset a data frame "foo", which looks like this: sent cond raw V1 10 2 A 614 7 11 2 A 724 6 12 2 A 641 5 13 2 A 665 9 33 5 B 510 7 34 5 B 659 7 35 5 B 607 6 37 5 B 467 8 38 5 B 586 9 39 5 B 523 10 57 8 C 858 8 58 8 C 513 9 59 8 C
2001 Nov 17
1
xyplot link missing
Hi, I am trying to install the nlme package, but during installation I get the message <snip> pdSymm text html latex example plot.ACF text html latex example missing link(s): xyplot plot.Variogram text html latex example missing link(s): xyplot plot.augPred
2009 Sep 15
1
FYI, Samba presentation at Ohio LinuxFest 2009
At this years Ohio LinuxFest 2009 Don Vosburg will be presenting on his experiences deploying Samba in various configurations: "So You Think You Can Dance? Samba in the Real World" by Don Vosburg Samba is a terrific file sharing project - but how well can you dance? Hear real world examples of hot to swing with Samba. We will explore integration with existing networks, or standing up
2000 Jun 22
1
'pausing' in R
I have this 'odd' problem; I need to let R pause, for a given time, before starting next iteration in a loop. I'm using the following to do this task, but feel a little bit guilty because I'm using as much CPU time as I can get while pausing: while(keepGoing) { t.end <- proc.time()[3] + 5 ## the time this loop should end at [block of R commands] while(proc.time()[3]