Displaying 20 results from an estimated 2000 matches similar to: "read.table problems"
1999 Nov 09
2
Problems with read.table
Hi I am using R65.1 in Windows 95
I have a CSV file from Excell
>
a<-read.table("c:/heberto/mgc/tst.csv",header=T,sep=",")
> attach(a)
> a
manolo fvcpp fevpp fvvcpp tlcpp rvpp rvtlpp plmaxpp
1 1 99.28 97.67 98.38 91.14 102.9 111.25 117.64
2 1 86.97 68.56 78.89 94.60 112.34 118.53 159.20
3 1 81.12 71.76 88.37 89.16
2004 Jul 28
1
read.table() and NULL for colClasses
Hi,
is there are reason for not supporting NULL or "NULL" values for argument
colClasses in read.table(), much like you can use NULL values for argument
'what' in scan()? This would help quite a bit when reading large data files
where only a few columns are of interest.
I've modfied read.table() to so it calls scan(what=...) also with NULLs for
the fields to be skipped.
2009 Jun 14
2
read.csv
If read.csv's colClasses= argument is NOT used then read.csv accepts
double quoted numerics:
1: > read.csv(stdin())
0: A,B
1: "1",1
2: "2",2
3:
A B
1 1 1
2 2 2
However, if colClasses is used then it seems that it does not:
> read.csv(stdin(), colClasses = "numeric")
0: A,B
1: "1",1
2: "2",2
3:
Error in scan(file, what, nmax, sep,
2003 Feb 12
1
models for square tables
I've posted a sample file for estimating loglinear models for square
tables (mobility models) at http://www.xs4all.nl/~jhckx/mcl/R/
Comments and suggestions are welcome.
John Hendrickx
2000 Jul 07
1
reorganizing a data frame
Hi,
I have what I think is an easy question.
I have a data frame, called stockdata, of stock prices that looks like this:
date ticker close
1 01/02/1998 GE 24.667
2 01/05/1998 GE 25.104
3 01/06/1998 GE 24.771
4 01/07/1998 GE 24.979
5 01/08/1998 GE 24.750
6 01/02/1998 HIT 71.125
7 01/05/1998 HIT 72.313
2007 Aug 29
12
ruby on rails search engine
He all,
who can recommend me search engine(search for different models) for my
web-site?
ps: i know about ferret for example, but maybe there are some others?
Thank you
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this
2009 Aug 05
3
import data into R
Thank you Gabor Grothendieck for your answer !!
i have charge the pachage but now i have this massage
read.table("c:/TOTAL.xls",h=T)
[1] ÐÏ.à..
<0 rows> (or 0-length row.names)
Warning messages:
1: In read.table("c:/TOTAL.xls", h = T) :
incomplete final line found by readTableHeader on 'c:/TOTAL.xls'
2: In if (!header) rlabp <- FALSE :
the condition has
2011 Nov 12
4
No route matches [GET] "/microposts/304"
Hi all,
I''m learning Rails by Example (chapter 11), by Michael Hartl (
http://ruby.railstutorial.org/chapters/user-microposts#top) but I got no
route matches when I try to delete one micropost.
the _micropost html is...
<tr>
<td class="micropost">
<span class="content"><%= micropost.content %></span>
<span
2015 Jan 16
1
S3 generic method dispatch on promises
Dear R friends
I wanted a function to make a simple percent table that would be easy for
students to use. The goal originally was to have a simple thing people
would call like this
pctable(rowvar, colvar, data)
and the things "rowvar" and "colvar" might be names of variables in data. I
wanted to avoid the usage of "with" (as we now see in the table help).
Then
2002 Feb 27
2
static link
hi,
i have downloaded the linux-version of openssh-3.0.2p1. i wanted
to compile it statically with the following configure-statement:
./configure --prefix=/usr/local/opt/openssh-3.0.2p1 --with-pam
--with-md5-passwords --with-v4-default --with-ldflags=-static
--with-ssl-dir=/usr/local/opt/openssl
It worked for the older 2.9 version, but now i get the following error:
gcc -o ssh ssh.o
2009 Sep 01
3
Simple question about error on CSV import
I have a substantial CSV to import but can't seem to import even the
simplest CSV.
I'm running the latest stable REvolution R on OS X if that is pertinent.
Here's the contents of a simple test2.csv CSV file:
#,Status,Project
5842,New,Test
> snortalerts = read.table( "/Users/lcox/Documents/test2.csv", header=TRUE,
> sep=",", row.names="#")
Error
2002 Jun 27
5
[Bug 306] ssh on Tru64 returns " Name does not resolv to supplied parameters"
http://bugzilla.mindrot.org/show_bug.cgi?id=306
------- Additional Comments From cmadams at hiwaay.net 2002-06-28 00:31 -------
I'm not seeing this on Tru64 4.0G or 5.1A with OpenSSH 3.4p1. What does
"rsh [server]" say? Are you using IPv6?
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
2005 Mar 23
4
Playback of sound files but no sound
Hello,
I'm running asterisk-1.0.6 on a centos3.4 box.
I'm still in testing phase and so far everything is running smoothly.
I'm now trying to play a soundfile or an mp3file using 'MP3Player',
'Playback'
or the 'Background' commands, but don't get any sound.
The logfile says:
-- Executing BackGround("SIP/joa-9def", "tt-weasels") in
2003 Nov 05
1
read.table leaves out data when reading multiple-line records (PR#4955)
Dear all,
I discovered that read.table (RW1.8.0) leaves out data when reading
multiple-line records.
Replication code at the end
Best regards
Jens Oehlschlägel
> filename <- "c:/tmp/c2.csv"
>
> data <- data.frame(a=c("c", "e\nnewline"), b=c("d", '"quoted
simpleline"'))
>
> #look at the data
>
2010 Jul 29
1
[PATCH] Reflow logic to make it easier to follow
The control flow was:
if (!y) {
ppix = ...
}
if (y) {
...
} else if (x) {
use ppix for something
} else {
use ppix for something
}
Merge the if(!y) block with the two else branches. This avoids
a false-positive in the clang static analyzer, it can't know that
!y and x are mutually exclusive.
The result looks something like this:
if (y) {
...
} else {
ppix = ...
if (x) {
2001 Dec 29
1
Slow 'read.table' in R 1.4.0 (PR#1232)
The 'read.table' function appears to be up to 10X slower in R 1.4.0 than R
1.3.1 for some of the data sets I read in. I was comparing the source code
for the 2 versions and see that it was rewritten in R 1.4.0.
I think I found out what part of the problem might be. I was comparing
R1.3.1 and R1.4.0 code and it appears that a statement is missing in some
of the code for R 1.4. This is
2007 Aug 29
4
How to signal the end of the table?
I am using a "for" loop to read a table row by row and I have to specify how
many records are there in the table. I need to read row by row because the
table is huge and the memory not large enough for the whole table.:
number.of.records=100
fp=file("abc.csv","r")
pos=seek(fp, rw="read")
for (i in 1:number.of.record){
current.row=scan(file=fp,
2002 Feb 22
1
Summary: read.table on Mac OS X, CARBON vs. DARWIN
Thanks a lot, James!!
The problem is fixed. On the version 1.4.0 Mac/darwin (the latest
available version for this system) the function read.table (which is
called from read.delim etc., too) has the bug you explained.
Inserting the row
nlines <- nlines+1
after
lines <- c(lines, line)
removes this bug.
M.
On Friday, February 22, 2002, at 02:33 PM, james.holtman at convergys.com
2008 Nov 18
1
"deparse" with "nlines" argument produces empty elements (PR#13299)
Full_Name: Kamil Barto?
Version: 2.8.0
OS: windows xp
Submission from: (NULL) (212.33.92.187)
According to the "deparse" function documentation "nlines" is the *maximum*
number of lines to produce. But, when "nlines" argument is supplied, it produces
exactly nlines of result, and the result contains empty elements at the end.
Example:
>
2004 Dec 23
2
Get rid of space padding
I'm currently using the below function from some library (MASS?) for
writing my data out to file. I'm using it instead of plain old "write"
because it does buffering. The problem that I'm having is that the
numbers are space padded, but I need true tab-delineated files. It
looks like the spaces are coming from 'format', but I don't see
an option for format to