similar to: Reading in and writing out one line at a time

Displaying 20 results from an estimated 90 matches similar to: "Reading in and writing out one line at a time"

2004 Sep 26
3
Implementing samba3/LDAP system across several schools
Hi All, I am looking into the feasability of using Samba/LDAP for domain control across several schools in my area, and would be interested to hear of anyone who has any experience/thoughts on how this could work. The schools share a community learning resource centre, and I am looking for ways for all users to be able to log in at their own schools, and also at the learning resource
2009 Jun 02
2
Table of Summaries
Apologies for the novice question, but this is likely beyond my google searching range.. I am trying to create a table from the summaries of a file. The 2 column data table looks like; Harry 335/335 Harry 124/506 Harry 124/506 Dick 133 Tom 335/335 Tom 335/335 with 1000 unique values in col 1, 300 unique in col 2. The 'summary' doesn't seem
2009 Jun 08
2
Re flect Back to Back Histograms in x-axis?
I've looked long and hard for this, but maybe I am missing something... There is a nice module that displays histograms reflected in the y axis, i.e. http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=136 but is it possible to reflect in the x-axis, so to have two datasets, one pointing up and one down rather than left and right? I haven't been able to find a way to plot this
2010 May 21
1
Error in FUN(X[[1L]], ...) : STRING_ELT() can only be applied to a 'character vector', not a 'integer'
I am receiving this error running a command on a multi-row data-frame. The data is strings of text (each with new line separator, no spaces, no numerical characters). Error in FUN(X[[1L]], ...) : STRING_ELT() can only be applied to a 'character vector', not a 'integer' I can run single text string into the same command, and so the issue seems to be how the package deals with the
2009 Aug 06
2
Select subset with specific distribution parameters.
This may be a simple problem, but I am looking to select a subset of rows from a dataframe that will have the same parameters as all the rows in another dataframe. e.g. I have a 500 row dataframe with 20 columns. I want to select a subset of rows from a larger dataframe that match the distribution of values for one or more of the columns within the 500 row dataframe (i.e. within same range, but
2011 Jul 28
1
Xapian and Synonyms
Hi guys I've just had a thought about something we do with our search on ReportBuyer.com: we cater for both American and British English in our searches and we have had plans for a while now to implement something that allows users to find 'colour' and 'color', 'tap' and 'faucet' by doing some clever programming. Looking at the Xapian docs, though, it appears
2011 Feb 03
0
Select just numeric values from rows
Terry Any good? list <-"A B C N1 N2 N3 N4 N5 N6 N7 N8 N9 N10 Apples Bananas Peaches 1 2 3 4 5 6 7 8 9 10 Oranges Kumquats Plums 1 1 3 5 5 5 7 6 6 12 Pears Kiwis Grapes 2 4 6 8 5 6 7 6 9 1" d = read.table(textConnection(list), header=TRUE) Nrowsums = apply(d[,sapply(d,is.numeric)],1,sum) HTH Pete -- View this message in context:
2008 May 08
6
Draft Call for Testing
Hi folks, how does this look? http://wiki.winehq.org/PlatinumRegressionHunt I hope to publicise this once wine-1.0.0-rc1 is released. Let me know if the instructions are hard to follow. Thanks, Dan
2010 Jan 08
2
How to Merge based on Rows
Let's say that I have a bunch of matrices. They look like this (pardon using fruit for examples, my actual data tables are far too enormous): Matrix1 Apples Oranges Pears A 5 6 7 B 5 3 4 C 8 9 10 D 11 13 14 E 15 3 8 F 1 4 5
2007 Aug 26
2
Character position command
This is a very simple question, so I apologize I couldn't find it online: I want to shorten the string 'apples.pears' to 'apples'. string='apples.pears' string1=substr(string,0,x) For x above, I would like to have a command like charAt(string,"."), i.e. the position of the period in the word, but I can't seem to find a charAt command in R. Thank you.
2007 Oct 26
2
function in R that's equivalent to SQL's "IN"
Hi all, I'm trying to find something like the "==" operator that will work on vectors or something equivalent to SQL's "IN" function. For e.g., if I have: x <- c(1,2,3,4,5) y <- c("apples", "oranges", "grapes", "bananas", "pears") z <- data.frame (x,y) w <- c(2,4,5) I want R to return the values
2010 Jun 09
2
Change the name of one column ONLY
Hi all, I have a very simple problem that I cannot seem to find the answer to. Consider the following toy dataset: x <- read.table(textConnection("V1 apples bananas cherries indv.1 7 8 4 3 indv.2 7 7 4 9"), header = TRUE) How would I change the column name of ONLY the first column, not the others? Surely I should not have to re-specify the names of ALL the columns -- e.g.,
2009 Jun 30
0
flush-behind behaving synchronously
[Apologies if this gets posted twice] Hi, I can't seem to get flush-behind to flush behind and I was wondering if anyone would be kind enough to lend some brain cells to help me see what I'm missing. I'm using glusterfs 2.0.1 on Debian/x86. I've got a "cluster/ replicate" volume replicated between two servers that are connected (over a VPN) over a slooooow
2007 Jan 03
1
R and threading
Hi, I am considering using R to integrate with a Java application. However, before deciding upon R I need to understand if R is capable of dealing with multiple requests simulataneously. Is a single instance of R capable of dealing with multiple simulataneous requests or does a new instance of R have to be started for each request? I have read Luke Tierney's 2001 notes on threading at
2011 Feb 18
2
xyplot formula
df=data.frame(country=c("A","A","A","B","B","B"), food=rep(c("Apples","Pears","Bananas"),2), X2000=c(4,5,6,7,6,8), X2001=c(4,5,6,7,6,8), X2002=c(4,5,6,7,6,8), X2003=c(4,5,6,7,6,8)); I have data in the above form trying to get a plot of each fruit over time year conditioned on country and
2003 Nov 21
3
what does this mean in R-1.8.1 release notes?
what does this mean in R-1.8.1 release notes? o median() no longer `works' for odd-length factor variables.
2008 Apr 30
0
Fwd: Why R is 200 times slower than Matlab ?
This is what I refer to as "ab uno disce omnes"-thinking: -- from one example all is revealed -- but this is the antithesis of statistical thinking. Here is an example function, others can probably do better. On a vector of length 300 it takes .018 seconds on my aging G5 ppc mac: pears <- function(x){ n <- length(x) A <- combos(n,2) rbind(x[A[1,]],x[A[2,]]) } This is
2007 Jan 03
0
R's capaability of dealing with multiple requests
Hi, I am interested in integrating R with a Java front end. Before deciding to use R I am concerned about multi-threading. I have been investigating R's capability of dealing with multiple requests simultaneously (multi-threading) and have looked at Luke Tierney's 2001 notes for ideas for future releases of R at http://www.stat.uiowa.edu/~luke/R/thrgui/thrgui.pdf Is a single instance
2008 Jul 31
1
predict rpart: new data has new level
Hi. I uses rpart to build a regression tree. Y is continuous. Now, I try to predict on a new set of data. In the new set of data, one of my x (call Incoterm, a factor) has a new level. I wonder why the error below appears as the guide says "For factor predictors, if an observation contains a level not used to grow the tree, it is left at the deepest possible node and
2016 Jan 15
2
[Patch] TCP MD5SIG for OpenSSH
On Fri, Jan 15, 2016 at 1:07 PM, Alex Bligh <alex at alex.org.uk> wrote: > On 15 Jan 2016, at 11:44, Thomas ? Habets <habets at google.com> wrote: >> On 15 January 2016 at 08:48, Alex Bligh <alex at alex.org.uk> wrote: [snip] > 3. Server compares supplied address/port pair with what it sees > (to detect DNAT like Amazon elastic IPs), and if they are the >