search for: maxline

Displaying 11 results from an estimated 11 matches for "maxline".

Did you mean: max_line
2005 Apr 15
2
abbreviate or wrap dimname labels
For a variety of displays (mosaicplots, barplots, ...) one often wants to either abbreviate or wrap long labels, particularly when these are made up of several words. In general, it would be nice to have a function, abbreviate.or.wrap <- function(x, maxlength=10, maxlines=2, split=" ") { } that would take a character vector or a list of vectors, x, and try to abbreviate or wrap them to fit approximately the maxlength and maxlines constraints, using the split argument to specify allowable characters to wrap to multiple lines. For example, this two-way ta...
2008 Sep 07
2
restructuring datset problem
Hi, I've got a question regarding the restructering of a data set. What I have are municipality zip-codes and the names of 5'000 built-up areas within municipalities. The following example shows, what I would like to do: Input (Zip-Codes and Names): # CODE NAME #1 3 aaa #2 3 aab #3 3 aac #4 4 bba #5 4 bbb #6 4
2001 Oct 02
1
problem with while loop with next (was RE: file connection, w hile, readLines and browser)
...> > > year 2001 > > > month 08 > > > day 31 > > > language R > > > > > > I defined a function like the following: > > > > > > myfun <- function(file, maxline) { > > > f.con <- file(file, open="rt") > > > on.exit(close(f.con)) > > > while(length(readln <- readLines(f.con, 1)) > 0 ) { > > > ## Do something with readln... > > > } > > > ## Do something more... > > &...
2001 Oct 02
0
file connection, while, readLines and browser
...(OK, it's NT4sp6) system x86, Win32 status major 1 minor 3.1 year 2001 month 08 day 31 language R I defined a function like the following: myfun <- function(file, maxline) { f.con <- file(file, open="rt") on.exit(close(f.con)) while(length(readln <- readLines(f.con, 1)) > 0 ) { ## Do something with readln... } ## Do something more... } This didn't work for me. It gave me an error at the while statement, saying "NA where lo...
2005 Mar 16
0
tftpd remap rules
...remap rule: --- tftp-hpa-0.40/tftpd/remap.c.old 2005-03-16 16:34:34.000000000 -0500 +++ tftp-hpa-0.40/tftpd/remap.c 2005-03-16 16:22:49.000000000 -0500 @@ -275,6 +275,7 @@ int lineno = 0; int err = 0; + memset(this_rule, '\0', sizeof(struct rule)); while ( lineno++, fgets(line, MAXLINE, f) ) { rv = parseline(line, this_rule, lineno); if ( rv < 0 ) @@ -283,6 +284,7 @@ *last_rule = this_rule; last_rule = &this_rule->next; this_rule = tfmalloc(sizeof(struct rule)); + memset(this_rule, '\0', sizeof(struct rule)); } } --...
2001 Jan 05
2
crash with scan(..., what=list(,,)) (PR#802)
When reading a file with scan(), the following crashes R under Solaris and WinNT 4.0 (versions below): > ads <- scan("Bltiadu.dat", what=list(,,)) Would an error message be more logical? Note that the followings work (the data file has 201 lines and 3 columns): > ads <- scan("Bltiadu.dat", what=list(0,,)) Read 603 lines > ads <-
2001 Oct 02
0
An example (was RE: file connection, while, readLines and bro wser)
...> > minor 3.1 > > year 2001 > > month 08 > > day 31 > > language R > > > > I defined a function like the following: > > > > myfun <- function(file, maxline) { > > f.con <- file(file, open="rt") > > on.exit(close(f.con)) > > while(length(readln <- readLines(f.con, 1)) > 0 ) { > > ## Do something with readln... > > } > > ## Do something more... > > } > > > > This did...
2001 Oct 02
1
RE: problem with while loop with next
...> month 08 > > > > > day 31 > > > > > language R > > > > > > > > > > I defined a function like the following: > > > > > > > > > > myfun <- function(file, maxline) { > > > > > f.con <- file(file, open="rt") > > > > > on.exit(close(f.con)) > > > > > while(length(readln <- readLines(f.con, 1)) > 0 ) { > > > > > ## Do something with readln... > > > > > } &g...
2010 Aug 12
6
NTFS is more resilient than ext3? Or is it hardware issue?
Hi guys, I don't mean to incite debate or something, just want to share experience and a little curiosity. Back long time ago, we have an old file MS W2K (NTFS) server where due no admin was available to manage it, the server would get power off when the office closed, and auto power on again in the morning. That thing happened for years and it was fine ^^ Recently, I setup a Centos 5.5 file
2002 Aug 15
6
(2.2.5) Does AUTO PRINTER DRIVERS work - definitive statement please
Hi, could someone who is close to the Samba development make a comment about the automatic printer drivers features in Samba 2.2.5 I've been trying to get this working unsuccessfully, and have seen many messages posted from people having trouble with this feature. Not sure if this is an unnusual number of people with problems, but it seems like it ( I could be too close to the problem to see
2008 Dec 11
1
Bug#508429: BUG: unable to handle kernel paging request
...-3.2-1-amd64 Version: 3.2.1-2 Severity: normal After giving xen a shoot with the fresh lenny packages, an annoying bug comes up right after trying to boot into the new system. I'll provide further informations if needed. Please see serial debug output below and here http://plzk.de/xen-lenny (maxlines got extended for comfortable reading) XEN) Xen version 3.2-1 (Debian 3.2.1-2) (waldi at debian.org) (gcc version 4.3.1 (Debian 4.3.1-2) ) Sat Jun 28 09:32:18 UTC 2008 (XEN) Command line: com1=9600,8n1 console=com1 (XEN) Video information: (XEN) VGA is text mode 80x25, font 8x16 (XEN) VBE/DDC me...