similar to: [<- and indexing for zoo objects

Displaying 15 results from an estimated 15 matches similar to: "[<- and indexing for zoo objects"

2005 Oct 27
1
data.frame-question]
First a general comment on posting style, could you please be more specific about where the error occurs as without this it is very difficult to identify what the problem is. Now concerning your problem. When I tried the code I posted yesterday I thought it worked fine. I've tried it again now and found that the data.frame TAB3 actually only has one column and the names "A",
2005 Nov 14
2
Coercion of percentages by as.numeric
Hi Given that things like the following work > a <- c("-.1"," 2.7 ","B") > a [1] "-.1" " 2.7 " "B" > as.numeric(a) [1] -0.1 2.7 NA Warning message: NAs introduced by coercion > I naively expected that the following would behave differently. > b <- c('10%', '-20%', '30.0%',
2005 Oct 25
2
data.frame-question
Dear R-List, I am very new to R and programming itself, so my question may be easy to answer for you. I tried a lot and read through the manuals, but I still have the following problem: I have 2 data-frames: Number<-as.numeric (Number) Name<-as.character (Name) TAB1<-data.frame (Name,Number) - it looks like this:- Name Number A 2 A 3 A 6 B 8 B 12 B 7 C 8 D 90 E 12 E 45 佲仸
2002 Feb 23
1
"Out of memory" install error message
Hi folks, I've been trying to install a legacy 16-bit Windows app called Expensable, published about 7 years ago by Intuit. Over the years I've run it natively, under Win-OS/2, and under Wine with a native Windows partition. Never a problem. Now that I've removed the Windows partition from my Linux box, I've set up Wine to work with fake Windows. The installation is fine, and
2004 May 25
2
vectorize an expression
Hi guys. Another thing I cannot vectorize: I have an array "a", of size 5-by-2, for example, of 5 2D vectors. I also have a distance function that computes the distance between two vectors (usual Euclidean distance is a good example but I have other metrics I want to use as well). I want a 5-by-5 array with the [i,j]th element being the distance from a[i,] to a[j,] To Wit: a
2009 Nov 23
1
Re moving rows which do not satisfy a condition
Hello, Considering 5 points in X-Y plain. Data is a 5*2 matrix (5 rows for samples & 2 columns for X and Y) With a distance from the origin, if a distance < 7, remove the row from the Data. After calculating the distance for each point, I can't forward because of this "Removing" problem. Anyone can help me? Data=matrix(1:10,5,2) a=rep(0,5); b=rep(0,5); for (i in
2011 Jun 02
1
ylab spacing in resizePanels in latticeExtra
I would like the ylab in the second, resized graph to be centered on the actual positions of the panels of the second graph, not on the positions appropriate for the first graph. How can that be specified. Toggle the two graphs to see that the ylab is identically spaced in both, even though the panels are differently sized. Thanks, Rich windows.options(record=TRUE) ## We need to compare two
2003 Aug 04
1
hclust() and agnes() method="average" divergence (PR#3648)
This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_000_01C35A53.75780090 Content-Type: text/plain; charset="iso-8859-1" Anyone have a clue why hclust() and agnes() produce different results in the example below when both use method="average"?? I'm not able to reproduce
2006 Aug 14
3
column to row
Dear mailing list I have a data in two columns and how can i convert it to one row . thank you in advance inpute 1 2 3 4 5 6 7 8 9 1 out put 1 2 3 4 5 6 7 8 9 1 [[alternative HTML version deleted]]
2013 Aug 30
4
mean
When I try to apply mean to a list, I get the answer : argument is not numeric or logical: returning NA Could you help me? (I am a very beginner) -- View this message in context: http://r.789695.n4.nabble.com/mean-tp4674999.html Sent from the R help mailing list archive at Nabble.com.
1999 Dec 26
1
Plotting dates?
Hi, Is there some easy way to plot some xy data and have date strings like say "dd/mmm" on the x axis? Thanks in advance. Yves -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the
2008 Mar 19
2
list()
Is anyone familiar with a good tutorial (in print or online) on the use of list()? I found Matlab structures to be a great way to pass complex variables (such as a model consisting of differently- dimensioned variables) back and forth between functions. It seems list() requires that you define the components within the command (model <- list( var1 =" ", var2 = " ",
2008 Oct 18
5
Getting names of variables without quotes
  Dear R-helpers, hello I am seeking your help in somehow getting names of variables without quotes (" "). Let us say, we have a table with 3 variables V1, V2 and V3. After the table is read, I get names of the variables (thro' the following code) as under quotes (like "V1" rather than the original representation V1)  
2012 Nov 15
4
using ifelse to remove NA's from specific columns of a data frame containing strings and numbers
Hi everyone, I have a data frame one of whose columns is a character vector and the rest are numeric, and in debugging a script, I noticed that an ifelse call seems to be coercing the character column to a numeric column, and producing unintended values as a result. Roughly, here's what I tried to do: df: a data frame with, say, the first column as a character column and the second and
2009 Jul 23
1
[PATCH server] changes required for fedora rawhide inclusion.
Signed-off-by: Scott Seago <sseago at redhat.com> --- AUTHORS | 17 ++++++ README | 10 +++ conf/ovirt-agent | 12 ++++ conf/ovirt-db-omatic | 12 ++++ conf/ovirt-host-browser | 12 ++++