> On 07 Nov 2015, at 04:56 , Mohammad Tanvir Ahamed via R-help
> wrote:
>
> Hi,
> i want to read a file on every 0.5 (or less) second. How can i set this time
> loop to read a file ?
> Any idea will be appreciated . Thanks . Tanvir Ahamed
Sys.sleep() if exact timing is not too critical. Oth
?Sys.sleep
Jim Holtman
Data Munger Guru
What is the problem that you are trying to solve?
Tell me what you want to do, not how you want to do it.
On Fri, Nov 6, 2015 at 10:56 PM, Mohammad Tanvir Ahamed via R-help <
r-help@r-project.org> wrote:
> Hi,
> i want to read a file on every 0.5 (or les
Hi,
i want to read a file on every 0.5 (or less) second. How can i set this time
loop to read a file ?
Any idea will be appreciated . Thanks . Tanvir Ahamed
Göteborg, Sweden | mashra...@yahoo.com
[[alternative HTML version deleted]]
__
On Jun 26, 2014, at 12:59 AM, Ron Crump wrote:
> Hi Carol,
>> It might be a primitive question but I have a file of text and there is no
>> separator between character on each line and the strings on each line have
>> the same length. The format is like the following
>>
>> absfjdslf
>> jfdldsk
Hi Carol,
It might be a primitive question but I have a file of text and there is no
separator between character on each line and the strings on each line have the
same length. The format is like the following
absfjdslf
jfdldskjff
jfsldfjslk
When I read the file with read.table("myfile",colCl
On 26/06/14 21:21, carol white wrote:
Hi,
with read.fwf, it works.
But I still don't understand why it doesn't work with read.table
since the sep by default is "", which is the case and in one trial, I
used read.table("myfile",colClasses = "character",
stringsAsFactors=FALSE, and stil didn't
Carol,
while sep="" is the default, it really means 'whitespace', see the
documentation of 'sep'.
Göran Broström
On 2014-06-26 11:21, carol white wrote:
Hi,
with read.fwf, it works.
But I still don't understand why it doesn't work with read.table
since the sep by default is "", which is t
On 26/06/14 20:47, Frede Aakmann Tøgersen wrote:
Hi
Actually I had to read the man before answering Carol. Here it goes:
stringsAsFactors: logical: should character vectors be converted to
factors? Note that this is overridden by 'as.is' and
'colClasses', both of which al
Hi,
with read.fwf, it works.
But I still don't understand why it doesn't work with read.table since the sep
by default is "", which is the case and in one trial, I used
read.table("myfile",colClasses = "character", stringsAsFactors=FALSE, and stil
didn't work but it should have.
Regards,
Service Solutions
T +45 9730 5135
M +45 2547 6050
fr...@vestas.com
http://www.vestas.com
Company reg. name: Vestas Wind Systems A/S
This e-mail is subject to our e-mail disclaimer statement.
Please refer to www.vestas.com/legal/notice
If you have received this e-mail in error please contact the sende
Hello,
Try using option stringsAsFactors = FALSE.
Hope this helps,
Rui Barradas
On 26/06/2014 09:32, carol white wrote:
It might be a primitive question but I have a file of text and there is no
separator between character on each line and the strings on each line have the
same length. The
On 26/06/14 19:32, carol white wrote:
It might be a primitive question
All questions are primitive; some questions are more primitive than others.
but I have a file of text and there
is no separator between character on each line and the strings on
each line have the same length. The format
vestas.com/legal/notice
If you have received this e-mail in error please contact the sender.
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
> On Behalf Of carol white
> Sent: 26. juni 2014 09:33
> To: r-help@r-project.org
>
It might be a primitive question but I have a file of text and there is no
separator between character on each line and the strings on each line have the
same length. The format is like the following
absfjdslf
jfdldskjff
jfsldfjslk
When I read the file with read.table("myfile",colClasses = "cha
What is wrong with the "extra step"? Is it taking too much time (you
did not specify that), is it taking too much memory? How many times
are you going to be doing it? If not many, then may be it is OK. You
have to quantify what you are asking for. It may take longer to send
a message to R-Help
On Nov 20, 2009, at 1:01 PM, Peng Yu wrote:
On Sat, Nov 21, 2009 at 11:55 AM, Steve Lianoglou
wrote:
read.delim gives me a data.frame. Is there a function that can
return
the result in a matrix rather than data.frame?
m <- as.matrix(read.delim(..))
I knew this approach. But this takes a
I can't think of anything that is already built in.
But you can always:
read.as.matrix <- function(...) as.matrix(read.delim(...))
and now you get one step only ;-)
b
On Nov 20, 2009, at 4:01 PM, Peng Yu wrote:
On Sat, Nov 21, 2009 at 11:55 AM, Steve Lianoglou
wrote:
read.delim gives me a
On Sat, Nov 21, 2009 at 11:55 AM, Steve Lianoglou
wrote:
>> read.delim gives me a data.frame. Is there a function that can return
>> the result in a matrix rather than data.frame?
>
> m <- as.matrix(read.delim(..))
I knew this approach. But this takes an extra step. Is there a command
that read a
read.delim gives me a data.frame. Is there a function that can return
the result in a matrix rather than data.frame?
m <- as.matrix(read.delim(..))
-steve
--
Steve Lianoglou
Graduate Student: Computational Systems Biology
| Memorial Sloan-Kettering Cancer Center
| Weill Medical College o
read.delim gives me a data.frame. Is there a function that can return
the result in a matrix rather than data.frame?
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.o
Try this:
x <- readLines('clipboard')
newx <- as.numeric(x[setdiff(seq(length(x)), grep("^#", x))])
comment(newx) <- grep("^#", x, value = TRUE)
newx
comment(newx)
On Thu, Aug 28, 2008 at 12:41 PM, Dani Valverde <[EMAIL PROTECTED]>wrote:
> Hello,
> I have a text file with this structure:
>
> # F
Is this what you want to do:
> x <- scan('clipboard', what="", sep="\n")
Read 18 items
> x
[1] "# File created = Thursday, August 28, 2008 3:33:02 PM GMT"
[2] "# Data set = 373 2 1 C:\\Bruker\\TOPSPIN GABRMN"
[3] "# Spectral Region:"
[4] "# LEFT = 4.5 ppm. RIGHT = 0.5 ppm."
[5] "#"
[6] "
Hello,
I have a text file with this structure:
# File created = Thursday, August 28, 2008 3:33:02 PM GMT
# Data set = 373 2 1 C:\Bruker\TOPSPIN GABRMN
# Spectral Region:
# LEFT = 4.5 ppm. RIGHT = 0.5 ppm.
#
# SIZE = 13111 ( = number of points)
#
# In the following ordering is from the 'left'
23 matches
Mail list logo