similar to: Making a table: collapsing across sub-strings

Displaying 20 results from an estimated 500 matches similar to: "Making a table: collapsing across sub-strings"

2007 Nov 27
2
rearrange data: one line per subject, one column per condition
Dear R-list, Is there a way to convert the typical long R data-format to a 1-line per subject format? I have data formatted as: Group subj condition variable 1 1 1 746.36625 2 2 1 1076.152857 1 3 1 1076.152857 2 4 1 657.4263636 1 5 1 854.1266667 2 6 1 1191.676154 1 7 1 1028.175385 1 1 2 46.36625 2 2 2 76.152857 1 3 2 76.152857 2 4 2 57.4263636 1 5 2 54.1266667 2 6 2 191.676154 1 7 2 028.175385
2007 Oct 31
2
ylim in barplot2 function?
Hi list, I'm using barplot2 form the gplots package to plot a few numbers (I want to add SD bars later). However, I would like the y-axis not to start from 0 but 500. When I add the parameters YLIM, something goes wrong. The graph is not 'cut off' at 500. Instead the bars seems to sink trough the bottom of the graph. Because its a little hard to explain, here is a self-containing
2008 Feb 15
3
lineplot.CI problem
Hi List, I have a problem plotting data using the lineplot.CI command in the sciplot package. I want to plot the data of 2 experimental cases using different lines (traces). Time is on the X-axis. The tricky thing is that the data collection in the second case started later than for the first case. This is to say: the first n data points for the second case are missing. So far so good. However,
2007 Oct 15
2
cumulative frequency plots for factors
Dear list, I have a data frame with a number of events (factor) and the times at which they occurred (continuous variable): event time A 10 A 12 B 15 A 17 C 13 ... Is it possible in R to make a plot against time of the cumulative frequency of occurrence of each event? This would be, a raising line for each factor. Regards, Dieter
2007 May 30
2
Smoothing a path in 2D
Hello, I'm currently trying to find a method to interpolate or smooth data that represent a trajectory in space. For example, I have an ordered (=time) set of (x,y) tuples which constitute a path in a 2D space. Is there a way using R to interpolate between these points in a way similar to spline interpolation so that I get a smooth path in space? Greetings, Dieter -- Dieter Vanderelst
2007 Jul 17
2
Combine R2HTML and Rcmd BATCH?
Hi All, I have an R script that spawns output in the form of an HTML page. This is done by the R2HTML package. Now I want to run the same script using Rcmd BATCH. However, it seems that it is not possible to use R2HTML in this case. My script ends with this error message: ######################### Error in dev.print(png, file = AbsGraphFileName, width = Width, height = Height, : can only
2009 Apr 15
3
Kruskal's MDS results
Dear List, I'm trying to interpret the results of the Kruskal's Non-metric Multidimensional Scaling algorithm (isoMDS, MASS package). The 'goodness of fit' is reported as "The final stress achieved (in percent)". What does this mean exactly? I've tried to google for an answer but I've not come up with a definitive answer. Regards, Dieter -- Dieter Vanderelst
2007 Jul 02
4
Combine graphical and textual output
Hi, I would like to know whether anybody knows a simple way to combine textual and graphical output in R. A typical analysis produces textual output (e.g. model fits) and plots in R. I would like to know whether R has the possibility of combining these into a single 'report' or output. An example of a program that does this is SPSS. After running the analysis you have a combination
1997 Oct 01
0
FW: Samba 1.9.17 fails to truncate share mode file (fwd)
Although the bug in Samba 1.9.17p1 which caused "ERROR: set_share_mode: failed to ftruncate share mode file" messages in log.smb has been fixed in 1.9.17p2, empty share* files are not being deleted from the lock file directory. Regards, Tim > Tim Boorman > UNIX Systems Support > Lusis Limited, Technology Drive, Bridgend Science Park, Bridgend, > United Kingdom CF31 3UJ
2009 Apr 22
0
comparing mixture models (mix function in mixdist package)
Dear List, We are using the mix() function in the mixdist package to fit mixture models to some of our data. The package provides a function to compare the fits of nested models using an ANOVA function. However, we were wondering whether there are methods that can be used to compare models that differ in the number of distributions fitted and/or the shape of the distributions. Is there a way,
2004 Jan 14
1
Collapsing a factor in R
I'm trying to collapse the following table along the sub-group factor. In this case, collapsing means taking the average ages within a subgroup and creating a new table. I seem to be running into trouble trying to create this new data frame. I can use the ave() function to find averages within a subgroup but how do I maintain the Group/Gender factors after collapsing? (see bottom table) Can
1997 Sep 26
1
Samba 1.9.17 fails to truncate share mode file (fwd)
Thank you for the information that you have passed on to me. My own research has found that ftruncate is quite happy to set a file to the same size that it is already, so something else must be causing the problem. The comment before the ftruncate in set_share_mode says the file is being truncated just for safety, so normally it is probably not necessary to truncate the file. Regards, Tim >
2011 Feb 22
1
collapsing by a key in a compound database
Hello all. I have a problem with collapsing by a key in a compound database. I have 2 databases (e.g. clients and client branches), both of them have the same attribute (with the same valueno), `client_id'. What I need is to search in both these databases and collapse results by `client_id' to get client IDs (set_collapse_key is used with collapse_max=1). The problem is that I receive 2
2010 Mar 24
1
Omega: behavior msize when collapsing results
Hello list, I have a problem with the value of the result size ($msize in omegascript) when collapsing results. The index contains 151452 documents. I'm using Omega 1.0.18 on FreeBSD (I tried both the version in ports and the latest one from xapian.org). This is my indexscript: uniqueid: boolean=Q unique=Q field=uniqueid objectid: field=objectid boolean=XID value=0 objecttype: field=type
2003 Dec 18
1
Collapsing Arrays/Lists to scalar values
This is probably an easy question. I want to join the elements of a list/array into a single scalar value. How can I do this? More Background: I have sql queries stored in external flat text files. When I read these queries into R using the normal functions, I get a list where each line is an element in the list. When I try to pass this to the appropriate RODBC function, I get an errror.
2008 Jun 17
1
interp() function output not continue
Dear List, I'm using interp() to prepare 3d data for plotting with the contour() function. If have x,y and z data. All are arrays. X and Y are sampled in an orderly fashion on a grid (a circular sub-area of a grid - see plot). I'm trying to use interp() to get x and y arrays and a z matrix that can be fed to contour(). This is the command:
2006 Jul 13
0
collapsing plot lines
All, When plotting a group data object, is there a way to have the plots of all the groups collapsed onto one plot, i.e., instead of separate panels as would be produced from example below? grouped.data.example <- groupedData(Y ~ Time | Patient_no, data = example.frm) plot(grouped.data.example) cheers, dave ps - I'm on windows
2016 Jun 10
0
collapsing list of NULLs dimnames into a NULL
Hi, Here are two different ways to create a 0 x 0 logical matrix: m1 <- matrix(nrow=0, ncol=0) m1 # <0 x 0 matrix> m2 <- as.matrix(data.frame()) m2 # <0 x 0 matrix> Surprisingly: identical(m1, m2) # [1] FALSE That's because of their dimnames: dimnames(m1) # NULL dimnames(m2) # [[1]] # NULL # # [[2]] # NULL More
2009 Feb 03
1
Collapsing panel data
Dear R-helpers, I've been thinking about this for some time, maybe someone can help. I have a fairly large dataset with thousands of firms, call the a, b, c, etc.. such as [,1] [,2] [1,] "A" 0.5 [2,] "" 0.2 [3,] "" 0.3 [4,] "B" 0.1 [5,] "" 0.9 [6,] "C" 0.4 Or to put it differently two vectors such as y
2010 Aug 04
2
ggplot2 barplot: extra markers in graph
Dear List, (self-contained example + version info at the bottom) I'm having trouble producing a barplot using the functions in ggplot2. When I use the position="dodge" option, the bars are plotted but also a number of spurious markers. More specifically, a number of black dots are plotted in the graph that should not be there. This behaviour is not seen when calling the same