Displaying 20 results from an estimated 10000 matches similar to: "Extracting "row.names""
2008 Oct 06
3
Extracting text from html code using the RCurl package.
Dear R-help,
I want to download the text from a web page, however what i end up
with is the html code. Is there some option that i am missing in the
RCurl package? Or is there another way to achieve this? This is the
code i am using:
> library(RCurl)
> my.url <- 'https://stat.ethz.ch/mailman/listinfo/r-help'
> html.file <- getURI(my.url, ssl.verifyhost = FALSE,
2009 Aug 27
5
Transform data for repeated measures
I have a dataset that I'm trying to rearrange for a repeated measures analysis:
It looks like:
patient basefev1 fev11h fev12h fev13h fev14h fev15h fev16h fev17h fev18h drug
201 2.46 2.68 2.76 2.50 2.30 2.14 2.40 2.33 2.20 a
202 3.50 3.95 3.65 2.93 2.53 3.04 3.37 3.14 2.62 a
203 1.96 2.28 2.34 2.29 2.43 2.06 2.18 2.28 2.29 a
2010 Oct 06
1
How to read a matrix with Hebrew row names?
Hello all,
I am trying to read a matrix with row names in Hebrew, but I am unable to read
the Hebrew words, e.g.:
להחזיק -1.544317e-02 -2.398621e-01
9.854603e-01 1.111321e+00
ש×חרי -1.544317e-02 -2.398621e-01 7.421092e-01
3.439690e-01
היישוב -1.544317e-02 -2.398621e-01
1.050982e+00 1.125970e+00
×‘×ª×™× -1.544317e-02
2010 Jun 05
1
Write.fwf works from Mac, throws different number of row error in Windows
Hello,
I am having a problem with write.fwf in Windows. I wrote a code to ingest a
number of text files with weather data in them, process them, and then
output a text file with two parts: 1) a set of column names, 2) the
processed data table.
I wrote and tested the program on my Mac, and it worked fine. However, on
the windows machine, where I intend the work to be done, when I run the
2009 Apr 28
1
Cannot update.packages (error message)
When trying to update (various) packages using update.packages() I get the following error message for various packages
package 'fBasics' successfully unpacked and MD5 sums checked
Error in unpackPkg(foundpkgs[okp, 2L], foundpkgs[okp, 1L], lib) :
malformed bundle DESCRIPTION file, no Contains field
>
This happens with other packages besides fBasics (Matrix, as well as others) and I
2009 Apr 28
1
R-2.9.0 malformed bundle DESCRIPTION file, no Contains field
When trying to update (various) packages using update.packages() I get the following error message for various packages
package 'fBasics' successfully unpacked and MD5 sums checked Error in unpackPkg(foundpkgs[okp, 2L], foundpkgs[okp, 1L], lib) :
malformed bundle DESCRIPTION file, no Contains field
>
This happens with other packages besides fBasics (Matrix, as well as others)
2009 Sep 17
1
Error message in Design library
This was working a few weeks ago, but perhaps the package has been updated since then.
model.1 <- lrm(response ~ p_value, data=c_abl_oncogene_1_RTK)
When I run the following command . . . .
prediction.1 <- predict(model.1, type=c("fitted"))
I get the following error message. . . .
Error in predictDesign(object, ..., type = "lp", se.fit = FALSE) :
could not find
2008 May 26
2
Strange behaviour of as.POSIXct
Hi:
I do not understand the returned value of NA in the following, which is a simplified version of
my attempt to convert the start column of the data frame AirQual in the SwissAir package.
as.POSIXct(paste('04.04.2004 0',0:3,sep=''),format='%d.%m.%Y %H')
[1] "2004-04-04 00:00:00 EST" "2004-04-04 01:00:00 EST"
[3] NA
2008 Apr 29
2
help text for xlim
Dear R-developers,
A student asked me today of how to specify the limits of the x-axis. I
knew that he should use xlim, but I tried to encourage him to have a try
himself with the various help functions. I do not judge if he used the
correct search strategy or right key words, but anyway here is what he
tried: he looked at ?plot. There xlim is not mentioned. He checked ?par.
There you find
2008 Jun 10
2
Slow function
Hi,
I have the following function that I want to apply to a list of 14
matrices (1536 x 170) of binary data:
DRes <- function(x, nr = 10000, metric = "mixed", ...) {
require(analogue)
require(ade4)
m <- c()
for (i in 1:nr) {
set.seed(i)
x1 <- x[, sample(dimnames(x)[[2]], length(x[1,])/2)]
x2 <- x[, !dimnames(x)[[2]] %in% dimnames(x1)[[2]]]
d1 <-
2008 Dec 17
1
Extract Data from a Webpage
Hi All:
I would like to extract the provider name, address, and phone number
from multiple webpages like this:
http://oasasapps.oasas.state.ny.us/portal/pls/portal/oasasrep.providersearch.take_to_rpt?P1=3489&P2=11490
Based on searching R-help archives, it seems like the XML package
might have something useful for this task. I can load the XML package
and supply the url as an argument to
2008 May 06
2
gfortran: Command not found
Hi, All:
How do I get information about the "R CMD check / build / install"
process, especially regarding what software to install and how to
configure it under Windows XP?
I ask, because "R CMD check" complained, "gfortran: Command not
found". I found 'gfortran-sjlj.exe' in 'C:\Program
Files\R\Rtools\MinGW\bin', which is in the
2008 May 22
3
feature request for M$-Windows install (PR#11499)
# R for Windows will not send your bug report automatically.
# Please copy the bug report (after finishing it) to
# your favorite email program and send it to
#
# r-bugs at r-project.org
#
######################################################
R versions R-2.6.2 and R-2.7.0 for M$-Windows no longer allow me to
install as administrator (on my account) so the users can run R on their
own
2011 Sep 29
1
sqldf syntax, selecting rows, and skipping
I am using the example in this post:
https://stat.ethz.ch/pipermail/r-help/2010-October/257204.html
# create a file
write.table(iris,"iris.csv",row.names=FALSE,sep=",",quote=FALSE)
# this does not work
# has the syntax changed or is there a mistake in my usage?
# the line from the post above is:
# read.csv.sql("myfile.csv, sql = "select * from file 2000,
2008 May 09
1
getWinProgressBar does not return previous value
I am trying to use winProgressBar, however I find that although
setWinProgressBar updates the value on the screen, getWinProgressBar does
not return this value.
E.g
> pb <- winProgressBar()
> setWinProgressBar(pb, 0.2)
> getWinProgressBar(pb)
[1] 0
I tried the same with tkProgressBar, and it is working as I would expect
from the documentation.
> pb <- tkProgressBar()
>
2008 Sep 23
2
read.table & readLines behaviour?
Hi,
I have been using 'read.table' regularly to read tab-delimited text
files with data. No problem, until now.
Now I have a file that appeared to have read fine, and the data inside
looks correct (structure etc), except I only had 15000+ rows out of
the expected 24000. Using 'readLines' instead, and breaking up the
data by tabs, gives me the expected result.
I do not
2013 Feb 26
3
double bracket stripping names
Is it on purpose that `[[` strips the
names when used on an atomic vector?
> c(a=1, b=2)[1]
a
1
> c(a=1, b=2)[[1]]
[1] 1
> sessionInfo()
R Under development (unstable) (2013-02-11 r61902)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=English_United Kingdom.1252
[2] LC_CTYPE=English_United Kingdom.1252
[3] LC_MONETARY=English_United Kingdom.1252
[4] LC_NUMERIC=C
2007 Feb 13
1
question on docs for delayedAssign and substitute
The help files for delayedAssign and substitute both say that
substitute() can be used to see the expression associated with a
promise. However, I can't see how to do that. When I try the example
in help file for delayedAssign I don't see substitute() extracting the
promise, e.g.:
> msg <- "old"
> delayedAssign("x", msg)
> msg <-
2009 Mar 06
1
array subsetting of S4 object that inherits from "array"
Hi,
I have an S4 class that inherits from "array" but does not add generic
implementations of the "[" method.
A simplified example is:
setClass("fooarray", contains="array")
If I create a "fooarray" object and subset it with a one-dimensional
index vector, the return value is of class "fooarray". Other variants
(see below), however,
2011 Mar 30
2
problem with png() and large dimensions on some 32-bit Windows machines
Hello,
I encountered this:
> png(file=tempfile(), width=1165, height=12983)
Error in png(file = tempfile(), width = 1165, height = 12983) :
unable to start png() device
In addition: Warning messages:
1: In png(file = tempfile(), width = 1165, height = 12983) :
Unable to allocate bitmap
2: In png(file = tempfile(), width = 1165, height = 12983) :
opening device failed
>
On the