similar to: Referencing data frames

Displaying 20 results from an estimated 500 matches similar to: "Referencing data frames"

2009 Sep 02
5
pruning data
Hello everyone, I am trying to prune a data frame for partial least squares analysis. I need to delete an entire row if one cell in the row contains a NA. Presently, I am running a loop that is supposed to extract the rows that are full of numbers into a second data frame and skips the rows that contain a single NA value. I want to know if there is a simple way to determine if a row
2009 Jun 11
3
Matrix manipulation
Hello everyone, I have a couple of fairly simple questions (I hope) the answers to which I cannot find through the documentation at the moment. 1. I would like to delete the a row from a matrix if a certain elimination criterion is met. I am familiar with x <- x[-7,] (to remove row 7, for example). Are there any other means of removing an entire row? 2. Is there a single command that
2009 Aug 28
2
Pls package
Hi, I have managed to format my data into a single datframe consisting of two AsIs response and predictor dataframes in order to supply the plsr command of the pls package for principal components analysis. When I execute the command, however, I get this error: > fiber1 <- plsr(respmat ~ predmat, ncomp=1, data=inputmat,validation="LOO") Error in model.frame.default(formula =
2009 Jun 25
2
Placing text outside graph boundary
Hello, Is possible to place a label on a multipanel figure outside the boundaries of any single one of the existing graphs in a panel? Specifically, I have a function that creates a panel with quartz() and then fills it with 6 graphs consisting of exactly the same plot for 6 different groups. I would like to add one title for the entire figure at the top of the figure, but I cannot figure out
2009 Sep 21
2
How to handle missing values for the GeneMeta package?
Hello all, It seems that the GeneMeta passage returns NA in the respective row if any gene in the data sets to be synthesised are missing. Do you know of a way to overcome this problem? I tried using the 'impute' package to fill-in the missing values, but R crashes if 'impute' and 'GeneMeta' packages are used together. I have asked a separate question for that. Thanks
2009 Jun 15
2
Help with syntax error
Hi, I have written boxplot commands of this form before, but I don''t quite understand why the function call is reporting a syntax error in this instance. All parameters passed to the function are strings. Thanks in advance. Payam > simplevar <- function(wframe,column1,column2) { + tframe <- get(wframe) + x1 <- which(names(wframe)==column1) + x2 <-
2009 Jun 11
2
More basic question
I have encountered a more fundamental problem in my data set. I''m using read.csv, and all the data are imported as character. How do I do a string comparison in a line like this: M10[ !sapply(1:10, function(x)666 %in% M10[x,]), ] Alternately, how do I change the class type on a column in a data frame from character to numeric? Thank you very much. Payam [[alternative HTML version
2009 Jun 12
1
Extracting the name of an object
With apologies if I missed the answer in the response given to my previous question. How do I extract the name of an object and assign it to a string variable? For example, I have a dataframe named comnoglyc How do I assign this name to a variable dfname such that print(dfname) returns "comnoglyc"? Thank you very much. Payam [[alternative HTML version deleted]]
2009 Jun 15
0
books on Time serie
A time series text with a title that seems designed to hide its wide scope is: Forecasting with Exponential Smoothing The State Space Approach Hyndman, R.J., Koehler, A.B., Ord, J.K., Snyder, R.D. Springer 2009. This book is actually an excellent overview of time series theory, ARIMA as well as state space. It is of course, in part, a manual for the forecast and other packages in what has been
2003 Jan 24
3
win98 & samba file server
Hello everybody, it's a few minutes that i've subscribed in your mailing list. nice to meat all of you. I have samba on redhat 8 as a file server for a couple of "win98" & "winXP"'s.It work's for my XP OS's but I don't know how to join the "win98" 's in. please help me thanks payam.
2003 Oct 16
2
returning dynamic variable names from function
Within a function I'm assigning dynamic variable names and values to them using the "assign" function. I want to pass back the results but am uncertain how to do this. Basically, my function reads a number of data files and uses the filename of each file as the variable name for a list-to-become-dataframe. I want then to pass all these lists back, but again, the names of the
2009 Nov 28
3
extract coordinates from contour lines
To everyone, Is there a way to extract coordinates or an equation from a "straight" contour line? Thanks. Cheers Julius Tesoro
2004 Aug 31
3
XP Problems adding machines "on the fly"
Having trouble with the add machine script. Followed the chapter 6 how-to, but, it fails. Checking log file for the machine after error-RPC call failed on XP box, I find a 101MB log file filled with -error must provide name- something to that effect. Any help would be appreciated. smb.conf follows. [global] workgroup = FSK netbios name = Camarillo server string = Camarillo
2007 Oct 01
3
mean of subset of rows
Dear list, this must be an easy one: I have a data.frame of two columns, "ID" with four different levels (A to D) and numerical "size", and each of the 4 different IDs is repeated a different number of times. I would like to get the mean size for each ID as another data.frame. I have tried the following: >ID= as.character(unique(data[,1])) # I use unique() because
2009 Sep 27
1
Select.spatial on spplots
Hi everyone. I posted this on R-sig-geo but got no response. Can select.spatial() be used in an existing spplot? I have tried selecting points (eq) from a plot generated from sp. However, when I invoke select.spatial(eq). It generates only the points without the background containing the faults. I need the background to select which earthquakes coalesce on which fault. Is there an alternative?
2009 Oct 17
2
ozone data
Hi just a quick inquiry Sorry if this is too trivial but I am just a beginner in R. I am looking at the plyr package and I am intrigued at how data(i.e. ozone, baseball) is loaded without having to type data(ozone). Are they automatically loaded when i call library(plyr)? I want to do the same thing when I make my package. How does one accomplish this? Also, are there any beginner guides on how
2009 Aug 08
1
frequency of numbers in a list
Hi, I have two vectors, mag and i, and I want to generate a of vector where each element is the frequency of mag which is greater than i. i produced the following code. However I get the following error: mag<-rnorm(40,5,3) i<-seq(floor(min(mag)),max(mag), 0.5) freq<-sum(mag>=i) Warning message: In mag >= i : longer object length is not a multiple of shorter object length
2010 Jun 11
1
Fwd: how to "Disable Samba Roaming profile"
> > --- Original message --- > Subject: [Samba] Fwd: how to "Disable Samba Roaming profile" > From: Muqtadir Kamal <smkamal2001 at gmail.com> > To: <samba at lists.samba.org> > Date: Thursday, 10/06/2010 10:31 PM > > ---------- Forwarded message ---------- > From: Muqtadir Kamal <smkamal2001 at gmail.com> > Date: Fri, Jun 11, 2010 at 10:49
2005 Apr 08
1
Database Problems
I have a billing database that runs on a Faircom engine. I had set things up initially with users accessing files in this directory with their user accounts. However, only one person could enter data at a time. I then created a seperate share for this directory and did a force user= on it. I had thought that this worked, but of course users never bothered to tell me that after a short
2013 May 22
1
column width in .dbf files using write.dbf ... to be continued
Hello Arnaud, You posted this question a long long time ago, however I found your answer so I decided to post it anyway in case somebody else have the same problem as you and me. You were actually very close in finding your solution. The function DoWritedbf is an internal function from the foreign package. To access it outside of the package just do: foreign:::DoWritedbf so in your line: