Displaying 20 results from an estimated 200 matches similar to: "Lowest k values of list"
2010 Nov 07
2
remove data frame from list of data frames
I have a list of data frames like this:
a<- data.frame(x=runif(10), y = runif(10), Acc = 1)
b<- data.frame(x=runif(10), y = runif(10), Acc = 0)
ls<- list(a,b)
and I want to remove the data frames from ls that have Acc values other than 1.
How do I do that?
Thanks for any help!
Matthew
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 Jul 20
5
heatmap plot
Dear R community!
I am trying to create a heatmap based on the following data. As you can see the diagonal (0,0 to 10,10) is always 0). If I run the heatmap command like i posted it I get a graph with horizontal lines.
What is my mistake?
> heatmap(activity.matrix, Rowv = NA, Colv = NA, scale="column", xlab="x Compounds", ylab="y Compounds",
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
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
2008 Jul 26
1
Remove non-numerical columns from data frame
Hello,
My question sounds simple, but as I am desperatly searchin for a solution I am
asking you all. :)
I try to filter out all non-numeric columns of a data frame using a for loop
to go through all columns. My if clause looks like this:
for(j in 1:length(data)) {
...
if(!is.numeric(data[j])) skip <- "not numeric")
...
2010 Jan 18
2
unique: factor to string
Hi community,
I want to count the occurrence of values within a dataframe.
data$names is a list of many names. With namelist <- unique(data$names) I get all the existing names. But the result is a factor, not a list of strings.
I would then like to go trough all the names in a for-loop and count their occurrence.
How do I make this?
Best regards,
Markus
2008 Feb 26
2
Multiple linear regression with for loop
Hi everyone!
I have an array containing the following fields for over hundred compounds:
cpd, activity, fixterm, energy1, energy2, energy3, ...
I want to run a multiple linear regression on all entries of an array. Therefore I tried to do this with a for loop. (Maybe there is a direct way of calculating it using apply, but I don't know that either.)
Actually i tried the following code:
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
2009 Jan 20
5
Error message from CV.GLM
Dear list members.
I have problems with the usage of cv.glm from the boot package. Here are some parts of the script I wanted to use:
data <- read.table("selected_2D.csv", header=TRUE, sep=",")
?
glm.fitted <- glm("ydata$ y ~ 1 + density + vsurf_ID6 + vsurf_S ", data=data)
error <- cv.glm(data=data, glm.fitted, K=6)
ydata$y is a separate data set, where
2007 Apr 18
0
We have the most lowest and favorable prices join MHII.OB
I thought I was counselor that convinced me that an extremely guiltyIn its entirety, Straight kill at least 89 in BaghdadTwin attacks.
These exciting stocks right for your business!
It will assist you to feel the edge of market!!! No more doubts like ?and what if I lose my? money
?
MARSHAL HOLDINGS INC(MHII.OB) APPROVED share!!!
Exactly 300% of your success on markets of shares
Look at this
2008 Jan 30
1
"hist" combines two lowest categories -- is there a workaround?
When preparing a series of histograms I found that hist was combining
the two lowest categories or bins, 1 and 2. Specifying breaks, as
illustrated below, resulted in the correct histogram:
values <- sample(10,500,replace=TRUE)
hist(values)
hist(values,breaks = 0:10)
Apparently, the number of values strictly less than 1 is shown in the
first bin (and since none is less than 1,
2013 Sep 10
0
xtable Highlight the lowest and plus minus
I am using a similar dataset to the following:
a= c("Fruits", "Adam","errorA", "steve", "errorS",
"apples", 17.1,2.22, 3.2,1.1,
"oranges", 3.1,2.55, 18.1,3.2 )
a_table=data.matrix(t(matrix(a,nrow=5)))
I would like to highlight the smallest value in the Adam and Steve columns
and, also plus and minus the errors
2007 Apr 18
0
We have the most lowest and favorable prices join MHII.OB
I thought I was counselor that convinced me that an extremely guiltyIn its entirety, Straight kill at least 89 in BaghdadTwin attacks.
These exciting stocks right for your business!
It will assist you to feel the edge of market!!! No more doubts like ?and what if I lose my? money
?
MARSHAL HOLDINGS INC(MHII.OB) APPROVED share!!!
Exactly 300% of your success on markets of shares
Look at this
2013 Jun 15
1
Lowest bit rate for stereo
Just a quick question. What is the lowest possible bit rate for encoding in stereo in opus?
Peter
2002 May 22
0
[Bug 255] New: You must "exec" login from the lowest login shell.
http://bugzilla.mindrot.org/show_bug.cgi?id=255
Summary: You must "exec" login from the lowest login shell.
Product: Portable OpenSSH
Version: -current
Platform: PPC
OS/Version: AIX
Status: NEW
Severity: normal
Priority: P2
Component: sshd
AssignedTo: openssh-unix-dev at mindrot.org
2002 May 22
4
[Bug 255] You must "exec" login from the lowest login shell.
http://bugzilla.mindrot.org/show_bug.cgi?id=255
------- Additional Comments From dmanton at emea.att.com 2002-05-22 20:06 -------
Created an attachment (id=100)
sshd -d -d -d
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
2002 Jun 22
0
[Bug 255] You must "exec" login from the lowest login shell.
http://bugzilla.mindrot.org/show_bug.cgi?id=255
stevesk at pobox.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From stevesk at pobox.com 2002-06-23 04:51
2003 Oct 17
2
have hundreds of lenders help you get the lowest rates...
766z7813817h8nl54w77a6hm9e227x3 ed792014604cjg6w1199bc15624052z
The demise of my hamster made me cry!
lnterest rates are climbing!
We do the work for you. By subrnitting your information across to
hundreds of Ienders, we can get you the best interest rates around.
Amber can be quite amiable when she wants to be.
Imterest rates