Displaying 20 results from an estimated 6000 matches similar to: "read.table, row.names arg"
2008 Apr 17
2
pnbinom.c qnorm.c
Dear R users,
I was wondering from where I could get the C source code to compute
pnbinom() and qnorm() ?
(I would use R in batch mode but I find the startup time prohibitive, unless
there is a way to speed it up)
I searched the Web and it clearly is part of the R distribution, I just
don't know how to extract them.
Thanking you !
Markus Loecher
Princeton, NJ
[[alternative HTML version
2007 Jan 17
3
Row limit for read.table
I have been trying to read in a large data set using read.table, but
I've only been able to grab the first 50,871 rows of the total 122,269 rows.
> f <-
read.table("http://www.cs.odu.edu/~fmccown/R/Tchange_rates_crawled.dat",
header=TRUE, nrows=123000, comment.char="", sep="\t")
> length(f$change_rate)
[1] 50871
From searching the email archives,
2010 May 26
2
reading in table with different number of elements in each row
HI all,
This is probably simple, but I haven't been able to locate the answer either
in the Import Manual or from searching the listserve.
I have tab-delimited data with different numbers of elements in each row. I
want to read it into R, such that R fills in "NA" in elements that have no
data. How do I accomplish this?
Example:
DATA on disk:
1 -0.068191 -0.050729
2008 Nov 12
2
apply() just loops ?
Dear R users,
I have been diligently using the apply() family in order to avoid explicit
for loops and speed up computation.
However, when I finally inspected the source code for apply, it appears that
the core computation is a simple loop as well.
What am I missing ? Why the often found advice to use apply() instead of
loops and the actually observed empirical speedups on many tasks ?
Thanks in
2010 Mar 09
2
MASS package not on CRAN ?
The MASS package is listed on the CRAN web site (
http://cran.r-project.org/web/packages/MASS/index.html) but I am unable to
install it via install.packages(). The error is that the package is
"unavailable". When I manually download the source tar ball and try to
install it on a Linux machine, installation fails because "it is not a valid
package".
Do I need to search
2017 Oct 24
2
read.table(..., header == FALSE, colClasses = <vector with names attribute>)
Jeff,
Thank you for your reply. The intent was to construct a minimum
reproducible example. The same warning occurs when the 'file' argument
points to a file on disk with a million lines. But you are correct, my
example was slightly malformed and in fact gives an error under R
version 3.2.2. Please allow me to try again; in older versions of R,
?? > read.table(file =
2017 Oct 24
0
read.table(..., header == FALSE, colClasses = <vector with names attribute>)
>>>>> Benjamin Tyner <btyner at gmail.com>
>>>>> on Tue, 24 Oct 2017 07:21:33 -0400 writes:
> Jeff,
> Thank you for your reply. The intent was to construct a minimum
> reproducible example. The same warning occurs when the 'file' argument
> points to a file on disk with a million lines. But you are correct, my
>
2009 Apr 18
2
source code for prompt()
Dear R community,
pardon my ignorance but how would you get the source code for"non-visible
functions" ?
For example, I would like to see and modify the source code for the prompt()
function.
Thanks!
Markus
[[alternative HTML version deleted]]
1998 Nov 12
0
[COL/ROW]NAMES -> [col/row]names with new arg..
R-devel subscribers: this came from R-core,
but may interest you....
>>>>> "MM" == Martin Maechler <maechler@stat.math.ethz.ch> writes:
>>>>> "Ross" == Ross Ihaka <ihaka@stat.auckland.ac.nz> writes:
Ross> Martin Maechler writes:
>>> Actually, I've been thinking (and asking Kurt) if we shouldn't use
2008 Dec 10
2
read.table with different row lengths
Hi,
I need to read in a series of text files with a time series on each
row. The series are of different lengths and I'd like to just use the
first row as the length and have R ignore extra values in rows that go
over this length.
For example:
1 0 3 4 5
1 3 5 6 8 7 7
2 1 1 1 4 7 7 7
So the 7s would be ignored and I would have a 5x3 matrix. I tried
creating a series of colClasses
2017 Oct 23
2
read.table(..., header == FALSE, colClasses = <vector with names attribute>)
Hello
I noticed that starting with R version 3.3.0 onward, this generates a
warning:
?? > txt <- c("a", "3.14")
?? > read.table(file = textConnection(txt), header = FALSE, colClasses
= c(x = "character", y = "numeric"))
the warning is "not all columns named in 'colClasses' exist" and I guess
the change was made in response
2007 Apr 24
3
R as a server on Linux
Hi,
I am trying to avid the somewhat costly startup overhead of launching
a separate R executable for each "client" request on Linux.
My current architecture is such that My Java client explicitly calls
R in batch mode and passes it certain parameters. The initital
startup takes almost 10 seconds because R has to load a bunch of
libraries as well as a moderately large, previously
2007 Oct 10
3
transparent colors
Dear R graphics experts,
Do you know of any way of plotting semi-transparent points in R ?
I face this problem any time I want to e.g. plot thousands of points
that belong to two or three classes which I color code.
With the default opaque colors, the plotting order matters and
basically the points I plot last completely dominate the picture. I
would much rather have the overlaying points
2017 Oct 24
0
read.table(..., header == FALSE, colClasses = <vector with names attribute>)
You are constructing the equivalent of a two-line data file, and complaining that it is not treating it like it was one line. If it did used to accept this silently [skeptical] then I for one am glad it produces a warning now.
--
Sent from my phone. Please excuse my brevity.
On October 23, 2017 2:53:21 PM PDT, Benjamin Tyner <btyner at gmail.com> wrote:
>Hello
>
>I noticed that
2000 Oct 24
1
installation problems with rbitmap.c (PR#703)
Full_Name: Markus Loecher
Version: 1.1.1
OS: Solaris
Submission from: (NULL) (129.73.1.1)
When trying to install R on a Sun SPARC, make fails in the very end, here is the
error message:
rbitmap.c:239: parse error before `jmp_buf'
rbitmap.c:239: warning: no semicolon at end of struct or union
rbitmap.c: In function `my_error_exit':
rbitmap.c:257: dereferencing pointer to incomplete type
2007 Jun 28
2
align() function missing in R ?
Dear list members,
I switched from Splus to R a few years ago and so far found no
functionality missing.
However, I am struggling to find the equivalent align() function for
time series. I did find some reduced functionality such as
alignDailySeries in package:fCalendar but the full capability of
aligning two timeseries seems to be missing.
Could this be true ? I am sure there must be a need
2011 Mar 29
1
ggplot2: scale_y_log10() with geom_histogram
Dear ggplot2 users,
is there an easy/elegant way to suppress zero count bars in histograms with
logarithmic y axis ?
One (made up) example would be
qplot(exp(rnorm(1000))) + geom_histogram(colour = "cornsilk", fill =
"darkblue") + scale_x_sqrt() + scale_y_log10()
Thanks!
Markus
[[alternative HTML version deleted]]
2007 Jun 27
1
Matlab end operator
Dear list members,
I use both R and Matlab and find that each has its own strengths. Matlab definitely has the edge when it comes to the interactivity of its graphs.
In addition I find the little operator end extremely useful in indexing arrays. (as in x(1:end,) )
The notation is MUCH more cumbersome in R using nrow() and ncol() recursively (as in x[1:nrow(x), ] ).
Is there a package that might
2009 Sep 18
1
as.POSIXct(as.Date()) independent of timezone
Dear R users,
I am struggling a bit with the converting dates to full POSIX timestamps, in
particular, I would like to somehow force the timezone to be local, i.e. the
output of
as.POSIXct(as.Date("2008-07-01")) should always be equal to "2008-07-01
00:00:00", is that achievable ? I tried to set the origin and the timezone,
neither of which seems to make a difference.
On my Mac
2009 Oct 30
1
possible memory leak in predict.gbm(), package gbm ?
Dear gbm users,
When running predict.gbm() on a "large" dataset (150,000 rows, 300 columns,
500 trees), I notice that the memory used by R grows beyond reasonable
limits. My 14GB of RAM are often not sufficient. I am interpreting this as a
memory leak since there should be no reason to expand memory needs once the
data are loaded and passed to predict.gbm() ?
Running R version 2.9.2 on