similar to: exporting tapply objects to csv-files

Displaying 20 results from an estimated 800 matches similar to: "exporting tapply objects to csv-files"

2010 Jul 06
3
Selection with changing number of columns
Dear list, I'm looking for a way to select rows of a data.frame with changing number of columns (constraint) involved. Assume a data (d) structure like Var.1 Var.2 Var.3 9 2 1 2 9 5 1 2 1 I know the number of involved columns. Is there a way to generate the following selection automatically (maybe for loop), so that it makes no difference if there are two or ten columns involved.
2010 Jul 05
3
Counting defined character within String
Dear list, I'm looking for a way to count the number of "|" within an object. The character "|" is used to separated ids. Assume a data (d) structure like Var NA NA NA NA NA 1 1|2 1|22|45 3 4b|24789 I need to know the maximum number of ids within one object. In this case 3 (1|22|45) Does anybody know a better way? Thanks Mit freundlichen Gr??en Andreas Kunzler
2008 Sep 11
2
Handling time-series-Data
Dear List, I ran into some problems with time-series-Data. Imagine a data-structure where observations (x) of test attendants (i) are made a four times (q) a year (y). The data is orderd the following way: I y q x 1 2006 1 1 1 2006 3 1 1 2006 4 1 1 2007 1 1 1 2007 2 1 1 2007 3 1 1 2007 4 1 2 2006 1 1 3 2007 1 1 3 2007 2 1 I am looking for a way to count the attendants that at least have
2008 Jul 08
4
Manipulate Data (with regular expressions)
Dear Everyone, I try to automatically manipulate the data of a variable (class = factor) like x 220 220a 221 221b B221 Into two variables (class = numeric) like x y 220 0 220 1 221 0 221 1 221 1 y has to carry the information about the class (number or string) of the former x-Variable. I could do it by hand like x[x == "220a"] <- 220
2008 Jul 22
2
Table orderd by frequencies
Dear List, I try to order the output of a table by the frequencies of the vector I am look at. The object I am looking at is a factor with a lot of levels that were named only once. Therefore it would be much easier to order the output by the frequencies of the levels. E.g. > levels(a) "a" "b" "c" "d" Preferred outcome: table(a) b c a d 10 5 1 1
2008 Jul 16
2
Group level frequencies
Dear List, I have Multi-level Data i= Indivitual Level g= Group Level var1= First Variable of interest var2= Second Variable of interest and I want to count the frequency of "var1" and "var2" on the group level. I found a way, but there must be a much simpler way. data.ml <- data.frame(i=c(1:8),g=as.factor(c(1,1,1,2,2,3,3,3)),var1=c(3,3,3,4,4,4,4 ,4),
2008 Jul 17
5
calculate differences - strange outcome
Dear List, I ran into some trouble by calculating differences. For me it is important that differences are either 0 or not. So I don't understand the outcome of this calculation 865.56-(782.86+0+63.85+18.85+0) [1] -1.136868e-13 I run R version 2.71 on WinXP I could solve my problem by using round() but I would like to know the reason. Maybe someone can help me? Thanx
1999 Jun 11
1
SMBMOUNT on SGI
I would like to use smbmount on a SGI running IRIX 6.5.1m. The distribution of samba for IRIX does not include the executables smbmount or smbmnt. Is there a source for these executables? Regards, Fred -------------------------------------- Fred Kunzler Phone: (281) 575-5090 91-1SE-42C Pager: (800) 618-5062 10200 Bellaire Blvd. Fax: (281) 575-5473 Houston, TX 77072 E-mail:
1999 Jul 19
1
Saving MS Word Documents to a Samba Share from NT
I have installed Samba 2.0.4a on SGIs running IRIX 6.5. My PC is running NT Workstation SP 3. I have a problem saving documents from MS Word 97 SP 1. If I create a new document and attempt to save it to a Samba share I get the following error message: Word cannot complete the save due to a file permission error. (G:\XX\TEST.DOC). A listing of the directory from Unix shows the following:
2006 Jan 12
3
Using an extension to send a linux command
I am a newbie to asterisk and am trying to send a linux command using extensions in asterisk, for example when I dial 1111 I want to run the linux command "/usr/local/bin/br -c -n 1" (obviously without the quotes). If I SSH into my asterisk box and enter that command, it works, however I can't seem to get it to work from asterisk. I am running Asterisk@home2.2 (I know, I am a
2006 Feb 28
0
FW: 7960-tones.xml (Schochet, Wes)
As the thread from the other mailing list he sent this to states, it is illegal to share the file(s) he is asking for. Below is the thread from the sccp users mailing list that he sent this to. <sccp mailing list> 2006/2/28, picciuX In fact: the one you mention is not a config file; it is part of the "Locale-Installer for Cisco Call Manager". You need a valid service contract
2006 Jan 24
6
iax provider
Hi I looking a good IAX service for a *emerging * voip provider. Better with a test account to try. Thanks in advance. roberto -- Ing. Roberto Pereyra ContenidosOnline Servidores BSD, Solaris y Linux Soporte t?cnico ISPs Jabber ID: rpereyra@lugmen.org.ar For reliable and professional DNS, use DNS Made Easy! http://www.dnsmadeeasy.com/u/14989 -------------- next part
2012 Feb 28
4
vlookup type function
Hi I''m looking for an Excel Vlookup type function in R. Example: list <- c(1,2,3,4,5,6,7) base <- c(2.2,3,5.2) What I want is, for each number in base, the highest value in list, which is equal to or less than the number in base So the results would be: base ? ? ? ? list 2.2 ?------> 2 3 ? ?------> 3 5.2 ?------> ?5 Thanks for your help!
2006 Oct 02
3
line plot through NA
Dear R-help list, I hope I did not miss something obvious, because my question seems very simple, but I couln't figure out how to do it. If I have the following data: Day<-c(1,2,3,4,5,6,7) V<-c(5,NA,10,30,45,NA,10) than the line in plot plot(V~Day, type="b") will start with the 3rd value and stop stop at the 5th value because all NA are omitted. Is there now a parameter
2012 Jun 01
3
Average curve in R
Dear R users, I have weekly data in the following manner [,1] [,2] [,3] [,4] 6 2 2 2 5 4 4 3 6 35 2 13 7 32 3 5 4 4 423 3 3 6 4 5 5 6 5 3 I drew curve of each column against days (1,2,3,4,5,6,7). Now I want to draw an average curve (a representative curve) of the whole data. Is there a way in R to perform such operation? please reply ASAP as i have an assignment to submit on monday. Thanks
2003 Mar 05
1
Dataframe in loop
Hi, I try to make a dataframe in a loop function, but I dont have succeed. The function is something like this: for(i in c(10,12)) { expr for(j in c(1:2) { total <- c(1,2,3,4,5,6,7) nspf <- length(levels(as.factor(total))) fin <- data.frame(L=i,N=nspf) print(fin) } } This print something like this: L N 1 10 7 L N 1 10 7 L N 1 12
2009 Feb 19
1
Getting the difference between two data frames
Dear R users, I have the following data: x <- data.frame( myX = c(1,2,3,4,5,6,7,8,9) ) y <- data.frame( myX = c(1,2,3,4,5,6,7) ) How can I get the difference between data frame x and y? In this case, I want to get values 8 and 9 I know in SQL we can use minus operator, but I have no idea how to do so in R. I tried all.equal, diff, and identical, but they don't give me the actual data
2009 Feb 13
2
tapply bug? - levels of a factor in a data frame after tapply are intermixed
Hello! I have encountered a really weird problem. Maybe you've encountered it before? I have a large data frame "importances". It has one factor ($A) with 3 levels: 3, 9, and 15. $B is a regular numeric variable. Below I am picking a really small sub-frame (just 3 rows) based on "indices". "indices" were chosen so that all 3 levels of A are present:
2008 Aug 02
2
Gaps in time series.
I like the fact that in subtracting two time series objects that there is some effort to align the series. So if I have a time series of that begins at 1 and one that begins at 2 a subtraction operation makes sure that the proper values are subtracted. But I am unclear as to the best way to build a time series with "holes". say that I have data for "day" 1,2,6,7 in one time
2005 May 05
6
Need some quick help with lattice - barchart
For the following code below, the x-axis ticks are 1,2,3,4,5,6,7 when I was expection them to be 1,2,8,9,10,11,12. Please help me figure out where is the mistake. library(lattice) testdata <- as.data.frame(t(structure(c( 1,2005,9.24,6.18,634, 2,2005,8.65,6.05,96, 8,2004,6.81,6.51,16, 9,2004,9.0,7.29,8, 10,2004,8.84,6.18,524, 11,2004,8.54,6.35,579, 12,2004,9.97,6.3,614, 12,2005,8.75,5.84,32,