similar to: Error with rbind and zoo

Displaying 20 results from an estimated 1000 matches similar to: "Error with rbind and zoo"

2007 Dec 26
2
Rbind-ing a list into one item
Hi, I am doing the following: 1. I have a list of files.. Files1=list.files("some directory",pattern="some pattern") 2. I define a list as res=vector("list", length(files1)) 3. I read all the files into this list: res=lapply(files1, read.csv) I now want to rowbind all the items in the list into one big mass (all files have same number of columns). I tried
2001 Dec 19
1
File listing problem
I'm running samba version 2.0.4 and have a rather strange problem. I've created 2000 empty files on a Windows 2000 server named: simonsimons.20011214.17nnn where nnn is a number between 1 and 2000. When connecting to the sever in Unix using smbclient and doing a ls on the directory, the smbclient just does nothing (it sits there until I break out of it). If I then go into dos and
2007 Dec 19
3
Aggregating by a grouping
Suppose I have: Book Value A 10 B 11 C 9 D 8 A 12 C 4 D 5 B 7 I want to summarize above not by Book but by groupings of Books as in (below) I have a list ... basic_map <- list(c("A",B"),c("C,D")) Big_names <- c("A1", "A2") Names(basic_map) <- big_names So I want to get : A1 40 A2 26 How do I use tapply AND the list to get my
2008 Jan 10
5
Extracting last time value
I have a dataframe as follows: Date time value 20110620 11:18:00 7 20110620 11:39:00 9 20110621 11:41:00 8 20110621 11:40:00 6 20110622 14:05:00 8 20110622 14:06:00 6 For every date, I want to extract the row that has the greatest time. Therefore, ending up like: 20110620 11:39:00 9 20110621 11:41:00 8 20110622 14:07:00 6 I am using for loops (for every date, find largest time value) to do
2008 Jan 11
0
Re-Casting
R-experts, I have a bunch of files (by date) that I can read into dataframes as below. df$today: identifier rtgmdy rtgmdy_dt rtgmdy_watch rtgmdy_nowatch rtgmdy_watch_dt rtgsp rtgsp_dt 310000031 Aa3 20050701 Aa3 NA AA- 20050510 310000086 B1 20070920 B1 NA B+ 20070828 310000106 Baa2 20040326 Baa2 NA BBB 20051003 310000170 Baa3 20070601 Baa3 NA BBB+ 20051024 310000225 Ba2 20070601 Ba2 NA
2003 Jan 07
0
Your Enterprise Java/J2EE Architect Requirement
Good morning and Happy New Year 2003! Let it be prosperous for both you and me! Below you see a very short version of my CV as of January 2003 for your kind consideration and update. Word, TXT, and PDF version of the complete CV are available upon request. Enjoy the economic recovery! Make it a great day: ZAR ================================================================= ZAR PETKOV,
2002 Jun 26
22
FW: samba woes
All, I have been working on a component that is included with samba called SMBSH. The binary allows you to automount your NT shares by accessing your profile . I have been working on this for the last few days and have been unsuccesful at getting it work. Now I am not much of a programmer, but I did my best to try and troubleshoot this. However it just does not want to work in Linux. I
2009 Jan 08
1
Convert to as.Date
Hi, I have an vector object that looks like DA <- c("1991q1", "1993q2") (first quarter of 1991 etc) and I want to convert it into a date object using as.Date(). I did this for montly data but am stumped when it comes to dealing with quarterly data and as.Date. Would anyone be able to help? Would be very grateful for any advice, sorry for being such an R-newbie!
2009 Mar 25
2
Plot inside For loop
Hi I am plotting a set of data inside a for loop. Is it possible to use plot in for loop without redrawing the whole plot? Am using par(new=TRUE) but that draws on top of the previous plot. Couldn't find any threads about the topic. Thanks Mohan --
2009 Feb 25
1
How to get JRI to work from my NetBeans
Hi, I need your help. I have downloaded a precompiled JRI as part of rJava. I have included rJava as part of my R package libraries. Now I need to be able to work with some R functions from my Java apps. I'm using NetBeans on Windows. I have followed some instructions from http://www.rforge.net/JRI/ but i keep on getting errors when compiling my Java app as follows: run: Cannot find JRI
2009 Apr 02
4
Deleting rows based on identity variable
I have created this data frame to help illustrate my problem. id<-c(rep(1,5),rep(2,5),rep(3,5),rep(4,5),rep(5,5)) x<-rep((seq(1:5)),5) y<-c(0, 0.1, 0.5, 0.4, 0.2, 0, 0.1, 0.5, 0.4, 0.12, 0, 0.1, 0.5, 0.55, 0.2, 0, 0.1, 0.5, 0.3, 0.2, 0, 0.1, 0.6, 0.4, 0.1) d1<-cbind(id,x,y) I would like to delete all rows where id=4, however, when I tried the command  d2=d1[-c(id==4),] and looked
2009 Feb 25
2
reshape from wide to long
Hi,I would like to reshape the following "wide" data set to "long" form. I would appreciate help with the correct code for "reshape". I tried a few unsuccessfully. Thanks. Chetty __________________________________________________ dat.1 Grp X0 X3 X6 X12 X25 X501 C 0.5326517 0.6930942 0.9403883 1.157571
2009 Feb 12
2
Problem with loading rJava in R
Hello. I am trying to load the rJava package in R-2.7.2 (Windows XP 64-bit RGui) and get the following error message even though the mentioned .dll file is located at the directory listed in the error message. I have tried to uninstall and reinstall the package but that does not resolve the problem. Then uninstallation and re-installation of R did not resolve the issue either. Any suggestions are
2008 Aug 20
2
Line of best
Hi, I have a scatter plot, with an equation that best fits the scatter plot expressed as: 1/x^.6. I know for normal linear regression lines you can use the abline() command; however, since my best fit line is not linear, how can I draw my line on the scatter plot in a similar fashion to abline(). Thanks for everyone's help again. I appreciate this board's advice. Mark
2008 Aug 06
1
Matrix multiplication
Hi all, Is there an easy way to do cumulative matrix multipliation in R? What's the syntex? Thanks. Sincerely, Yanwei Zhang Department of Actuarial Research and Modeling Munich Re America Tel: 609-275-2176 Email: yzhang@munichreamerica.com<mailto:yzhang@munichreamerica.com> [[alternative HTML version deleted]]
2008 Dec 24
1
Fata; error:
I just installed R 2.8.1 for windows. When I try to start the software I get the following: Fatal error: unable to restore saved data in .RData. Note that on my previous section I tried to read a large dataset and I got a message stating that no enough memory was avaliable (I don't have the complete log for that section) I wanted to ask how can I go about solving this problem, or do I need
2009 Mar 25
4
Manual sort in a for loop
Dear all, I am trying to manually re-sort rows in a number of tables. The rows aren't sorted on any particular values but are simply ordered by user choice (as shown by the row numbers in the code). I have been able to carry out each re-arrangement without the use of the 'for' loop, but cannot seem to successfully execute the statements when incorporated into the loop. The code I have
2008 Aug 06
1
using acf() for multiple columns
Hi everyone, I'm trying to use the acf() function to calculate the autocorrelation of each column in a matrix. The trouble is that I can only seem to get the function to work if I extract the data in the column into a separate matrix and then apply the acf() function to this column. I have something like this: acf(mat,lag.max=10,na.action=na.pass) ...but I would really like to apply the
2009 Feb 27
5
Filtering a dataset's columns by another dataset's column names
Hello all, I hope some of you can come to my rescue, yet again. I have two genetic datasets, and I want one of the datasets to have only the columns that are in common with the other dataset. Here is a toy example (my real datasets have hundreds of columns): Dataset 1: Individual SNP1 SNP2 SNP3 SNP4 SNP5 1 A G T C A 2 T C A G T 3 A C T
2009 Mar 26
4
Reading in files with variable parts to names
Dear all, I'm trying to read in a whole directory of files which have two variable parts to the file name: year and month. E.g. comp198604.asc represents April of 1986 - 'comp' is fixed in each case. Years range between 1986 to 1995 and months are between 1 and 12. Just to be clear, there are 12 files associated with each year: e.g. comp198601, comp198602, ... comp198612 through to