Displaying 20 results from an estimated 120 matches similar to: "Remove carriage return in writing tab-delimited file."
2011 Nov 11
3
Combining Overlapping Data
I've scoured the archives but have found no concrete answer to my question.
Problem: Two data sets
1st data set(x) = 20,000 rows
2nd data set(y) = 5,000 rows
Both have the same column names, the column of interest to me is a variable
called strain.
For example, a strain named "Chab1405" appears in x 150 times and in y 25
times...
strain "Chab1999" only appears 200
2011 Oct 21
2
'Apply' giving me errors
So i have a simple function:
bmass=function(y){
weight=y$WT*y$MSTR
return(bio)
}
And want to apply to a whole bunch of rows in my data.frame:
final1=apply(final,1,yldbu)
BUT...recieve the following error:
"Error in y$WT : $ operator is invalid for atomic vectors"
However when i try:
> final[1,]$WT*final[1,]$MSTR
[1] 156.3
It gives me the correct answer....what is apply not
2011 Oct 25
1
Unlist alternatives?
dfhfsdhf at ghghgr.com
I ran a simple lme model:
modelrandom=lmer(y~ (1|Test) + (1|strain), data=tempsub)
Extracted the BLUPs:
blups=ranef(modelrandom)[1]
Even wrote myself a nice .csv file....:
write.csv(ranef(modelrandom)[1],paste(x,"BLUPs.CSV"))
This all works great. I end up with a .csv file with the names of my strains
in the first column and the BLUP in the second
2008 May 05
3
MeetMeAdmin() working problem
Hello users,
I have been working with a conference setup.
My setup includes:
1)There will be an interface number provided to the user
which might be a DID number or A Toll free number
When user calls the number it asks for the conference room number
and the user pin .
on successfull authentication he will be participated in the conference
2)by didaling the same DID number the
2008 Mar 03
0
Escape carriage returns (\r)?
Hi,
I was trying to get Google Calendar to import a gem-generated file
with no luck (it kept giving me the unhelpful message "parse error,"
even though http://severinghaus.org/projects/icv/ accepted the file as
valid). After a bunch of screwing around, I changed line 148 of
component.rb to include a .gsub("\r", "\\r"), which fixed the problem.
It seems like line
1999 Jan 20
0
Line Feed & Carriage Return
Hi there,
does anybody know how can I avoid the DOS-style end of line (LF + CR)
when saving a shared Unix ASCII file through Samba ?
Should I use the "magic script" (but I really didn't understand how it
works) or is there any way to do this dos2unix-like conversion
automatically (I can't find the right parameter for smb.conf)?
Thanks
Gianni
--
Gianni Ferrari
2011 Jun 22
0
jslint and carriage returns
Hi, jslint doesn''t seem to like the carriage returns in the mapstraction files.
Is there a way around this? I didn''t see an option for it.
-Mike
2003 Aug 21
1
Cisco 79xx XML carriage returns/line feeds
Hi All,
I've been developing all sorts of applications for use on our 79xx handsets but am having great difficulty with formatting, I just can't seem to be able to produce a line feed between lines on the stuff actually displayed on the phone. Has anyone else has experience or success with this ?
Cheers, Adam
********* DISCLAIMER *********
This message and any attachment are
2008 Oct 13
1
Perl CGI scripts - stripping out unwanted carriage returns etc
I have a number of perl CGI scripts which I wrote some time ago (and
which are working successfully on my website). I've set up a local
server on which to do some development work on the scripts but I can't
get them to work - the error log says:
No such file or directory: exec of '/var/www/cgi-bin/script.cgi' failed
Premature end of script headers: script.cgi etc
By comparing
2007 Mar 19
1
Carriage returns and Sweave output
Dear all,
I have a code chunk in my Rnw file that, when executed, outputs
carriage return characters ('\r') to inform on the progress (e.g.
"sweep 4 of 1024\r"). But Sweave interprets this as a newline
character, and therefore I get countless pages of output in my
vignette where I only really want one line. Any ideas?
Thanks
E
2012 Apr 15
1
no carriage returns in BATCH output from 2.15.0
It seems like I must be missing something
since I haven't been able to find mention
of this.
Under Windows 7 I'm not getting carriage returns
in the output of BATCH files using 2.15.0 (both
64-bit and 32-bit). They are in the startup
messages, but not for the real output. Is this
on purpose?
Pat
--
Patrick Burns
pburns at pburns.seanet.com
twitter: @portfolioprobe
2010 Aug 04
1
Carriage return character issue
Hi all,
I imported a file (in CSV format) into R for processing, then imported the
result into MySQL. However, there are *carriage return* characters
(hexadecimal: *0D*) that are appended to the characters in the last field of
the table.
i.e *\r* appended to the character values (as shown below)
Before importing into MySQL: asdf
After importing into MySQL: asdf*\r*
**
**
Are there any options
2023 Nov 10
1
Question about stderr output containing carriage return External
Hi all,
I have recently only discovered that openssh prints lines to stderr
separated by CLRF pairs, and am trying to understand where this
behavior comes from.
This behavior can be seen here:
--snip--
$ ssh u at u 2>&1 | sed -n l
ssh: Could not resolve hostname u: Name or service not known\r$
--snip--
I have seen section 11.3 from rfc4253, but am unsure whether that is
the origin of
2023 Nov 11
1
Question about stderr output containing carriage return External
Hi Josh,
it's been around for a while:
https://github.com/openbsd/src/commit/8747197a4a479407167d01f46017ddb99cc3cae2
Though the commit doesn't say why it needs the \r.
Cheers,
Marian
On 11/11/23 00:38, Joshua Rogers wrote:
> Hi all,
>
> I have recently only discovered that openssh prints lines to stderr
> separated by CLRF pairs, and am trying to understand where this
2023 Nov 11
1
Question about stderr output containing carriage return External
On Sat, 11 Nov 2023, Marian Beermann wrote:
> Though the commit doesn't say why it needs the \r.
When the terminal is in raw mode, \n is not the line separator
but \x0D\x0A is: \x0D moves the cursor to the beginning of the
line and \x0A moves it to one line below but does not change
the horizontal position.
So it?s a requirement when in raw mode and doesn?t hurt in
cooked mode.
bye,
2007 Mar 08
1
reading a text file with a stray carriage return
Hi,
I'm hoping someone has a suggestion for handling a simple problem. A
client gave me a comma separated value file (call it x.csv) that has
an id and name and address for about 25,000 people (25,000 records).
I used read.table to read it, but then discovered that there are stray
carriage returns on several records. This plays havoc with read.table
since it starts a
2006 Aug 19
1
need to find (and distinguish types of) carriage returns in a file that is scanned using scan
Hope this is not too trivial
I am reading a large file using scan.
In one part of this file there is a chunk of text within which i need to know the positions of line breaks. But scan seems only
An example of the file is:
"
a 0 1 0
bftt 020
cftt T 1 R
a 0 1 2 1 2
b 0 1 2 2 2
c 0 10 00
"
so precisely i need in the scanned file in R to know where each carriage return is in the file
2007 Jun 20
1
clients and carriage returns
I've recently ported PL/R (R embedded in Postgres as a procedural
language) to work on Win32 -- thank you to all involved for making the
embedded interface common between *nix and Win32!
This of course means users are now creating PL/R functions using Win32
based editors, which are using \r\n for EOL. I had not realized this
before, but R throws a parse error when it sees \r, even on a
2009 Sep 01
2
antispam-plugin 1.2 and trailing carriage-returns
Guys,
Dovecot 1.0.15 [1], just built the latest antispam-plugin 1.2 (tarball)
for testing, mailtrain backend for SA integration. Both built from
custom spec files.
The mail that is being trained is different than its respective source
in the mbox file. The trained one shows added, trailing carriage-return
chars for all headers, which are not in the headers in the mbox file.
This breaks sa-learn
2008 Aug 11
1
Unwanted carriage returns storing dataframes with dbWriteTable
If I save a dataframe with a character-typed last column to a relational
database with dbWriteTable, the values in the last column of the
resulting table in the database will have a '\r' (carriage return)
appended. If I read back the dataframe with dbReadTable the last column
in the resulting dataframe has also '\r' appended (see protocol below).
Setting or unsetting sql-mode