similar to: remove data frame from list of data frames

Displaying 20 results from an estimated 200 matches similar to: "remove data frame from list of data frames"

2009 Mar 25
3
Converting a Matrix to a Vector
Say I have: > set.seed( 1 ) > m <- matrix( runif(5^2), nrow=5, dimnames = list( c("A","B","C","D","E"), > c("O","P","Q","R","S") ) ) > m O P Q R S A 0.2655087 0.89838968 0.2059746 0.4976992 0.9347052 B 0.3721239 0.94467527 0.1765568
2009 Dec 29
1
extract value from first column based on value in second column
Hi all, I have two columns of data, the first consists of parameter estimates and the second probability estimates. I would like to extract the value from the first column based on the max value of column two, but not sure how to do this other than by extracting the value and then manually finding the value in the first column. Anyone know how to do this? Basically, I need to find the row
2010 May 28
3
how to create automatically names for vectors in a loop?
Hi, I want to generate a number of vectors and store them with different names, like this: x=1 while (x<100) { vector#x# = rnorm(100) x=x+1 } where each vector has, at its hand, instead of #x# a number which goes from 1 to 99. How can I do this? Thanks Gabriele Zoppoli, MD Ph.D. Fellow, Experimental and Clinical Oncology and Hematology, University of Genova, Genova, Italy Guest
2004 Nov 29
2
[BASIC] Solution of creating a sequence of object names
Dear R-users, I state that this is for beginners, so you may ignore this in order not to be irritated. By the way, "patience" is another important thing, together with "kindness", we should keep in mind when we teach students and our own children as Jim Lemon pointed out well in the context of the Socratic method. You may know that being kind does not mean giving
2007 Mar 03
1
function doesnt return/create object
hello, i have written a function to extract certain lines from a matrix. the result is a matrix with 6 cols, named dynamically according to the functions arguments. the problem is now, that i'm not able to return the resultmatrix for further use. the object is not being created. example from my console: getans(27,27) [...] [189,] 3969 161 27 1 0 1 [190,] 2142 87 27
2008 Sep 05
5
Lowest k values of list
Hi @ all, how do I get the largest or lowest k values of list? It must similar to the min() / max() function, but I just don't get it. Best wishes, Markus
2009 May 25
1
Memory problems when using ifelse
Dear R Users, I have a data frame of 4 columns and ~58000 rows, the top of which looks like this: > head(max_out) Latitude Longitude Model Obs 1 -0.25 -49.25 4 4 2 -0.25 -50.25 4 5 3 -0.25 -50.75 4 4 4 -0.25 -51.25 3 11 5 -0.25 -51.75 6 4 6 -0.25 -52.25 12 5 The above shows, for each coordinate point, the
2010 Mar 15
5
storing matrix(variables) in loop
Hello R-helpers, I have the following code that works well, b <-list() for (i in 1:3){ a <- matrix(runif(1),3,3) b[[i]] <- a } b however, I need to do something similar with two loops and I was looking for something that would look like b <- list() for (i in 1:3){ for (j in 1:4){ a <- matrix(runif(1),3,3) b[[i,j]] <- a #but this doesn?t work } } Anyway, I wanted
2010 Jul 19
2
replacing elements of distance matrix
Hi! I am trying to implement non-bipartite matching. I have around 500 sites which can be clustered by 10 regions. I am able to calculate pairwise Mahalanobis distances between sites (thanks to another post in the forum). However, I want to constrain my match to sites within the same region. Thus I want to replace elements of the distance matrix with a high value, say 999999, for sites not of the
2011 Mar 13
2
Having a problem with choose.files
I am relatively new to R, and am having a problem with the following snippet of code, and I do not at all understand why it is behaving this way. I am running Windows XP, with R 2.12.1. I copy and paste these 4 lines into the R Console: t<-c("a","b","c") ans<-select.list(t) txtNBS<-winDialogString("NBS","300") choose.files() I
2008 Sep 09
1
how to split a data framed with sequences
Hi all, Given a data frame: my.df <- data.frame(a = c(1:5, 1:10, 1:20), b = runif(35)) I want to split it by "a" such that I end up with a list containing 3 components i.e. the first containing a = 1 to 5, the second a = 1 to 10 etc. In other words, sets of sequences of a. I can't seem to find the right form using the split function - can you help? Much appreciated. David
2011 Mar 10
2
unable to connect to libvirtd at '*': No route to host
Hi @all, I have the following systems: AMD Processor Scientific Linux 6.0 Kernelversion: 2.6.32-71.18.2.el6.x86_64 KVM / Libvirt out of the repository I've setup my TLS-Certificates with the following howto /http://wiki.libvirt.org/page/TLSSetup/ Now I want to connect the servers with /virsh -c qemu+tls://nebula3/system/(nebula3 is the hostname) but the following error message always
2010 Apr 24
2
multiple paired t-tests without loops
I am new to R and I suspect my problem is easily solved, but I haven't been able to figure it out without using loops. I am trying to implement Blair & Karniski's (1993) permutation test. I've included a sample data frame below. This data frame represents the conditional means (C1, C2) for 3 subjects in 2 consecutive samples of a continuous data set (e.g. ERP waveform).
2009 Jun 12
4
Corruption issue found in e2fsprogs 1.41.5
Hi, A critical regression has been discovered in e2fsck. The problem was introduced in upstream 1.41.5 and is causing updates to block group descriptors to be lost after journal replay. Our 1.41.5.sun2 (.sun1 too) e2fsprogs version also suffers from this problem. We are working on rebasing our e2fsprogs package on 1.41.6 (see bug 19852). Until the new rpm is available (should be very soon), we
2009 Jun 12
4
Corruption issue found in e2fsprogs 1.41.5
Hi, A critical regression has been discovered in e2fsck. The problem was introduced in upstream 1.41.5 and is causing updates to block group descriptors to be lost after journal replay. Our 1.41.5.sun2 (.sun1 too) e2fsprogs version also suffers from this problem. We are working on rebasing our e2fsprogs package on 1.41.6 (see bug 19852). Until the new rpm is available (should be very soon), we
2010 Oct 02
1
problem with spline
I am trying to interpolate missing values using spline and am running into some strange problems. first, this works just fine: x<- c(1:10, rep(NA, 3), 14:20) y<- c(rnorm(10), rep(NA,3), rnorm(7)) s<- spline(x,y, n=length(x)) plot(x,y) lines(s, col="blue") but look at what happens with my real data (sorry for the long vectors here): x<- c(-9.816, -9.801, -9.801, -9.795,
2009 Jan 06
2
smbcontrol smbd ping also answered by nmbd and winbindd
Hello, with samba-3.0.x an "smbcontrol smbd ping" was answered by all running smbd processes. With samba-3.2.x it is now *also* answered by nmbd and winbindd: [root@cs00 ~]# smbcontrol -V Version 3.2.5 [root@cs00 ~]# for i in `smbcontrol -t 1 winbindd ping | grep PONG | awk '{ print $4}'` ; do pstree -p | grep $i ; done winbindd(29908) - winbindd(29909) [root@cs00 ~]#
2010 Sep 29
1
sample from very large distribution
I don't have enough RAM for this problem, so I need a work around. This is what I want to do: y<- sample(2^32, 100000, replace=FALSE) but my machine won't let me do that. so I now do this: x<- seq(1,2^32, by=100) y<- sample(x, 100000, replace=FALSE) this works fine, but by selecting every 100th item, it introduces a systematicity that may be problematic. I've tried
2011 Aug 08
0
Odp: Fw: R function for Gage R&R
Hi Elaine I do not use it very often. I programmed it to mimic Minitab functions (partly) with some adons from czech statistics textbook written by M.Meloun (meloun militky statistics - first hit in google) Basically you can have your data in some data frame or they can be as separated vectors. The function itself expects input of 3 vectors, but you can easily to modify it for imput as
2010 Oct 02
0
Running R on Amazon EC2 : Public Snapshot for use
Dear All, I ave created a public snapshot for use on Amazon EC2 using 64 bit Windows. If you want to try R on multiple cores ,remote desktop you can use this snapshot to create copies. It has R, GUIs for beginners (like RCommander , Deducer- Alas rattle failed due to RGtk+) and a lot of R analytical packages. It also has Chrome for browsing, Adobe Reader for reading help, and a dataset WDI (in