Displaying 20 results from an estimated 70000 matches similar to: "how to remove rows of NA"
2003 May 09
2
Re: [R] windows data editor changes dimensions displayed data frames (PR#2962)
On Fri, 09 May 2003 11:34:08 +0300, Bernd Ebersberger
<bernd.ebersberger@vtt.fi> wrote:
>dear R-tists,
>
>i am experiencing a problem with the data editor in the windows version of 
>R 1.6.1 envoked with the command 'fix'.
>
>the data editor changes the size of large data frames.
I can confirm this in the current R-patched.  I'll take a look.  It
might be that
2005 Jul 20
1
maps and data for german federal states
dear R-tists,
i want to graph information for the German Federal States (Bundeslaender) using the maps package. unfortunately there is no maps for the German Bundeslaender.
does anyone have an idea / a source where to get map data that can be used in the maps package that graphs structures below the country level. 
in the long run it would also be interesting to integrate Swiss Cantons and
2008 Mar 20
1
ggplot - axis labels angle
dear R-tists,
 
im an struggling with labeling ticks of the axis in a ggplot. 
i would like to print the text associated with the ticks being ploted
with a 90 degree angle. 
how can i possibly do this? 
 
cheers. 
 
bernd. 
 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Bernd Ebersberger
Management Center Innsbruck, Austria
 
 
 
 
	[[alternative HTML version deleted]]
2003 May 09
1
windows data editor changes dimensions displayed data frames
dear R-tists,
i am experiencing a problem with the data editor in the windows version of 
R 1.6.1 envoked with the command 'fix'.
the data editor changes the size of large data frames.
a simple example illustrates this:
-------------------------------------------------------
 > dfrm <- data.frame(no=c(1:100000))
 > length(dfrm[,1])
[1] 100000
 > fix(dfrm)
 >
2003 May 09
1
Re: [R] windows data editor changes dimensions displayed data frames (PR#2963)
And I can confirm it with
platform i686-pc-linux-gnu
arch     i686             
os       linux-gnu        
system   i686, linux-gnu  
status                    
major    1                
minor    7.0              
year     2003             
month    04               
day      16               
language R                
so it is not a Windows issue.
Cheers, 
Robert Cunningham
Duncan
2001 May 15
3
box around a barplot
Hi,
is it possible to draw a box around the following barplot; 
using "box=TRUE" won't work.
----------
pc<-c(1,2,5,29,27)
barplot(pc,ylim=c(0,30),yaxs="r",xaxs="r",ylab="Anzahl"     
,names.arg=c("Mac","286er","386er","486er","Pentium I")     
,axisnames=T,col="gray")
----------
Thanks in
2013 Dec 07
1
How to perform clustering without removing rows where NA is present in R
I have a data which contain some NA value in their elements.
What I want to do is to **perform clustering without removing rows**
where the NA is present.
I understand that `gower` distance measure in `daisy` allow such situation.
But why my code below doesn't work?
__BEGIN__
    # plot heat map with dendogram together.
    library("gplots")
    library("cluster")
   
1999 Jan 01
1
RE: timeslab
Hi Troels,
Its in the incoming directory:
        ftp://ftp.ci.tuwien.ac.at/incoming
Try this for a nice demo:
> library(timeslab)
> arma(alpha, beta, x, 2, 4, 3, 0.2,500, 30,0)           
Bernd
On 01-Jan-99 Troels Ring wrote:
> Hi Johannes Wuebben and a happy new year.
> Where did you actually put the timeslab ?
> Yours
> 
> Troels Ring, MD
> Department of Nephrology
2000 Jan 23
1
size limits
Hi,
    I have a few questions about how to handle large data sets in R.
    What is the size of the largest matrix that R can comfortably deal with?
    Is this size limit imposed by R's software,  or is it a question
    of the machine that one runs on?
    How does one go about choosing reasonable values of   vsize
    and nsize?
    I have a data set with about 1,000,000 rows, and 30
2001 Mar 05
1
histogram of frequencies (PR#861)
Full_Name: Dr. Bernd Winkler
Version: 1.2.2
OS: Linux
Submission from: (NULL) (194.59.179.176)
Hi all,
having updated to version 1.2.2 last week I experienced some strange behaviour
of 
the hist function.
I want to plot a histogram of frequencies resp. counts, for example poisson 
random numbers, on a predefined and fixed x scale
> hist(rpois(500, 2), breaks=0:10)
But instead of the
2010 Apr 05
2
find the "next non-NA" value within each row of a data-frame
#I wish to find the "next non-NA" value within each row of a data-frame.
#e.g. I have a data frame mydata. Rows 1, 2 & 3 have soem NA values.
mydata <- data.frame(matrix(seq(20*6), 20, 6))
mydata[1,3:5] <-  NA
mydata[2,2:3] <-  NA
mydata[2,5] <-  NA
mydata[3,6] <-  NA
mydata[1:3,]
#this loop accomplishes the task; I am tryign toi learn a "better" way
for(i
2000 Nov 12
2
R help for a newby
Hello,
    I'm trying to read a file that has ascci data in it. The format of the data
is in this order: test_number(integer) 4 double readings. Simple,ok, but for 
life of me I can't get R to put it into the internal format I need. What I want
to do is to make an array called dat and dim it 10000 rows by 5 columns.
That seems simple enough, I start out by:
dat <-
2003 Aug 13
4
big data file geting truncated
I am very new to R. I was trying to load some publicly available Expression
data in to R.
I used the following commands
 mydata<-read.table("dataALLAMLtrain.txt", header=TRUE, sep
="\t",row.names=NULL)
It reads data without any error
Now if I use
edit(mydata)
It shows only 3916 entries, whereas the actual file contains 7129 entries)
My data is something like
Gene Description
2000 Sep 03
1
removing rows from a dataframe
Hi,
    I have a dataframe, hilodata, which looks like this:
> hilodata
    sym         date               maxprice           minprice         ntick
 1  ABK     19910711     11.1867461      0.0000000       108
 2  ABK     19910712     11.5298979     11.1867461      111
 3  ABK     19910715     11.7357889     11.4612675       52
 4  ABK     19910716     11.5298979     11.3240068       51
 5 
2001 Dec 03
1
fitting models with the subset argument
Hi all,
I'd like to fit model where the terms both are in the data.frame, mydata
say, and are vectors *not in the data.frame*.
>obj<-glm(y~x, data=mydata) #works
>Z<-pmax(mydata$x-20,0)
>(length(Z)==length(obj$y))
>[1] TRUE
>update(obj,.~.+Z) #works
However for some subset it doesn't works:
>obj<-glm(y~x, data=mydata, subset=f==1) #works
2010 Oct 20
4
How to select not continous rows?
Hello
How can I select several not continuous rows ?
If I wanted to select rows 1 to 7 I'll write
mydata[,1:7]
But what if I need to select rows 1 to 5 and 10 to 15?
-- 
View this message in context: http://r.789695.n4.nabble.com/How-to-select-not-continous-rows-tp3003840p3003840.html
Sent from the R help mailing list archive at Nabble.com.
2013 Jun 10
1
padding specific missing values with NA to allow cbind
Dear list
Getting very frustrated with this simple-looking problem
> m1 <- lm(x~y, data=mydata)
> outliers <- abs(stdres(m1))>2
> plot(x~y, data=mydata)
I would like to plot a simple x,y scatter plot with labels giving custom information displayed for the outliers only, i.e. I would like to define a column mydata$labels for the mydata dataframe so that the command
>
2012 Jan 12
1
Keep rows where a variable matches one item of a vector
How do I subset data to only keep those rows of a dataframe where a
variable's value matches one item of a vector.  For example, how do I keep
all of the rows (and all variables) where mydata$id equals one of the values
in keepid?  See below?
mydata <- NULL
mydata$id <- 1:30
mydata$value <- seq(from=1,to=100, length.out=30)
keepid <- c(6,10,12,13,19,25,26,27,28,29)
In other
2004 Aug 28
4
removing invariant columns from a matrix
I'm looking for an efficient way of removing zero-variance columns from
a large matrix.
Any suggestions?
 
Thanks,
   - Moises
 
	[[alternative HTML version deleted]]
2002 Jul 08
2
matrix: rows to columns conversion
Hi,
I'm new to "R". I have a matrix of 6x12. I need to produce matrix of
12x6, such that rows in new matrix are columns from original matrix, and
columns in a new matrix are rows from the original one. I was playing
with rbind(), and cbind() with no success.
Regards,
    -Rado
-- 
Radoslav Bonk M.S.
Dept. of Physical Geography and Geoecology
Faculty of Natural Sciences, Comenius