Displaying 20 results from an estimated 2000 matches similar to: "has_one/belongs_to -- accessing the subordinate"
2011 Oct 10
3
question about string to boor?
Hello!
So I am handling this problem with some arrays grp1-grp7, I want to write a
loop to avoid tedious work, but I don't know how to transform string to
boor?
For example I used
i=1
paste("grp",i, sep="")
I only got "grp1" instead of grp1, which can't be manipulate using mean() or
other function.
I am not sure if I make myself clear...
THANKS!!!!
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
2019 Feb 11
3
bare-metal backup before update--options?
Hi all!
I'm a "nervous nellie", I have not yet updated my 7.5 desktop to 7.6
because (1) it has an Nvidia card, and (2) I've heard of problems
upgrading on top of software RAID (using RAID1 with 2 drives).
I need to upgrade it to stay secure, and I want to do a bare-metal backup
first (so I can put it all back as it now is, in case it explodes in my
face), so I'm trying to
2006 Nov 13
2
Embedded carriage returns in text document
Colleagues,
I am using R 2.4.0 on both a Mac (10.4.8) and Linux (RedHat 9). To
read data from an Excel spreadsheet, I do "save as" in Excel, then
select the "Text (tab-delimited)" format. The resulting file uses a
tab separator and I can usually read the file using read.delim.
Sometimes, the header row contains embedded carriage returns. When I
view the file,
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
2006 Jul 05
3
splitting a story with double-spaced para''s
Quick question - if i want to separate a long string of text, separated
by single carriage returns, into an array of paragraphs, I can use the
following code:
paragraphs = article.content.split("\n")
The "\n" means a carriage return, as far as I can tell.
If I wanted to take text, that had been written using the more common
double carriage returns, into an array of
2019 Sep 06
2
[PATCH 1/1] log: do not print carriage return
From: Christian Hesse <mail at eworm.de>
Logging to stderr results in line endings being terminated with carriage
return (\r) and new line (\n). While this is fine for terminals it may
have undesired effects when running from crond and logging to syslog
or similar.
I run ssh from cron on an recent linux host. Viewing logs with
journalctl I see:
Sep 06 16:50:01 linux CROND[152575]: [96B
2011 Sep 16
1
Question about permutation test
Hi!
I am doing a permutation test on 7 data randomly selected into two groups,
one has 4 and the other 3. The purpose is to list all the 35 possible
outcomes and calculate p-value. I googled the function perm.test() and not
sure if my usage is correct. So I set a=c(7 data), b=(1,1,1,1,2,2,2) which
represents the group. Then I use the function pt=perm.test(a,b...). There's
a p-value popped
2012 Apr 04
3
Remove carriage return in writing tab-delimited file.
Having problems with the write.table function. I can write a tab delimited
file just fine, but for each line in my matrix its inputs a carriage return
when i dont want it to.
For example my matrix might be:
ID V1 V2 V3
FARY1004 1 2 3
FARY2067 2 3 1
FARY4587 2 2 2
And I want the written File to be:
FARY1004 1 2 3FARY2067 2 3 1FARY4587 2 2
2
TIA
--
View this
2012 Jun 25
1
Replacing text with a carriage return
I have a comma separated data file with no carriage returns and what
I'd like to do is
1. read the data as a block text
2. search for the string that starts each record "record_start", and
replace this with a carriage return. Replace will do, or just add a
carriage return before it. The string is the same for each record, but
it is enclosed in double quote marks in the file.
2019 Feb 12
1
bare-metal backup before update--options?
On Mon, Feb 11, 2019 at 04:16:38PM +0100, Simon Matter via CentOS wrote:
> > Hi all!
> >
> > I'm a "nervous nellie", I have not yet updated my 7.5 desktop to 7.6
> > because (1) it has an Nvidia card, and (2) I've heard of problems
> > upgrading on top of software RAID (using RAID1 with 2 drives).
> >
> > I need to upgrade it to stay
2017 Feb 04
4
Greeter openssh 7.4 is not according rfc4253.
Hi,
I discovered when using my fuse fs for connecting to a remote host
using sftp that the new
server version 7.4 sends a greeter which is not according the format desribed in
https://tools.ietf.org/html/rfc4253#section-4
There is written that the greeter "MUST be terminated by a single
Carriage Return (CR) and a single Line Feed (LF) character (ASCII 13
and 10, respectively)."
Now
2001 Sep 24
1
ctrl + m in files
Hi,
I have just set up samba v 2.0.0 on solaris, sharing to Win2k, win98
clients. All shares work fine, but users have come up with a problem.
If a file (ASCII text) is created on the windows client on the share, when
read on the solaris system, ctrlM (^M) characters appear in place of the
carriage returns.
How can I prevent carriage return from being replaced by ctrlM (^M).
I reckon this is
2009 Apr 07
1
OT - SIP MESSAGE, newline chars and formatting
Hi,
I'm using a SIP phone (Thomson ST2030) which is able to display text
received though Asterisk's SendText() application.
I'm using this to display from Asterisk "Forwarded to 0123456789" whenever a
user forwards his calls to another number or extension.
Test is displayed with white letters on black background.
What I can't do at the moment is erasing this
2013 Apr 20
2
Editing data sheet issue with write.table append
I'm running R 2.15.2 on Max OS X 10.6.8
If I write a simple file
Data1<-1
DF<-data.frame(Data1)
colnames(DF)<-"Col1"
and write to a csv file
write.table(DF,file="Data.csv",sep=",",row.names=FALSE,col.names=TRUE)
I can then append to it no problem
Data2<-2
Data3<-4
DF2<-data.frame(Data2)
DF3<-data.frame(Data3)
2007 Dec 29
1
capture.output(), truncated last output without \n (PR#10534)
Full_Name: Philippe Grosjean
Version: 2.6.1
OS: MacOS X; Windows XP
Submission from: (NULL) (81.243.237.235)
Last output from capture.output() is truncated if it does not end with a
carriage return:
> capture.output(cat("text\n")) # Fine
[1] "text"
> capture.output(cat("text")) # Missing output!
character(0)
>
2007 Dec 29
2
(PR#10534 capture.output(), truncated last output without
This only happens if 'file' is a text connection, and is the expected
behaviour in that case: you cannot capture an incomplete line to a text
connection.
There seems no reason to break the documented behaviour in other cases to
change something that you consider to a bug when file=NULL and the user
does not produce complete output. It would be possible to make use of
isIncomplete()
2010 Jan 22
1
Title splitting function
Hi All,
I'm trying to write a function to automatically split long strings so they
will appear nicely in a chart i'm trying to create,
Say i have a string
title <- "some variety of words that are descriptive"
In this instance i want to place carriage return where there is a space just
prior to a specified number of characters (in this case 15)
title.length <-
2008 Jul 16
2
Postgres text field returns wrong data
I am having an interesting problem. I have a Postgres database with a
table containing a text field. In the text field is stored data that in
some cases has a ''*'' and a newline return as the first line first few
characters followed by several other lines.
The strange part is when a record is written the data looks correct,
however, when the record is read all line feed and
2006 Mar 16
3
Windows Deployment on Unix
Hi!
Can anyone give me some pointers on how to deploy a Rails application
developed under Windows with RadRails at a Unix Host (Textdrive).
I?ve heard of switch tower, but have never used it. Does it have a routine
to convert my Windows Carriage Returns/Line Feeds to Unix style? Is there
something else I should know?
Also, if somebody can point me to a good tutorial on setting up Rails to