Displaying 20 results from an estimated 4000 matches similar to: "issue accessing help files"
2012 May 26
3
Problem with readHTMLTable
Hello All,
i was trying to simply run the readHTMLTable on the example published in the
package. And on a page I was working on. So running:
u = "http://en.wikipedia.org/wiki/List_of_countries_by_population"
tables = readHTMLTable(u)
returns the following error:
Error in tb[["thead"]] : subscript out of bounds
looking up this error on the web, didnt give me any hint. Is
2012 Jul 25
3
Installing packages "xslx" on Ubuntu (32bit)
Hi,
I just recently changed my OS to Ubuntu 12.04 (32bit). Now I tried to install some packages required by my old and working scripts. Unfortunately I fail when trying to install the package "xslx". Maybe it is related to the 32bit version of my R (its not possible to install a 64 bit version).
Can anyone help me to sucessfully install xslx?
Here some console output (e.g.
2012 Mar 19
1
diff(time) vs. difftime?
I just encountered another RTFM problem: With
diff(as.POSIXct(...), ...) I was unable to control the units of the
results. Examples:
> (d.d <- diff(as.POSIXct(c('2012-12-12', '2012-12-13'))))
Time difference of 1 days
> (d.h <- diff(as.POSIXct(c('2012-12-12 08:00', '2012-12-12 09:00'))))
Time difference of 1 hours
> (d.m <-
2012 Feb 02
2
Problem with range()
Hello,
I'm using range do define boundaries for a linear model, so the line I
graph is only graphed for the range of data. There are NAs in the
data, but I dont remember this being a problem before. I typed
na.action=na.omit anyway, which has usually solved any NA issues in
the past. Any idea why R cant do vector functions for these data?
Solution?
Thanks,
Colin Wahl
M.S. Biology candidate
2012 Jan 24
1
Failure to get compactPDF to compact a pdf file
I am failing to get compactPDF to make any change to a pdf file
that, a/c to the message from the CRAN upload site, can be very
substantially compacted. Any ideas what may be wrong?
I have also tried recreating the pdf file. I also tried
R CMD build --resave-data --compact-vignettes DAAG
The data files compact alright (but I get the 'significantly better compression'
warning message
2012 Jul 31
1
Ubuntu installation
I just followed the instructions on
CRAN<http://cran.r-project.org/bin/linux/ubuntu/README> to install
R on an Ubuntu instance.
sudo apt-get install r-base
Why does it install an old version of R? Can I install version 15.1?
I changed my sources.list to be a current cran mirror. I believe that I
have entered the URL correctly because at first I had it wrong (there was a
trailing
2012 Jan 30
4
replacing characters in matrix. substitute, delayedAssign, huh?
A user question today has me stumped. Can you advise me, please?
User wants a matrix that has some numbers, some variables, possibly
even some function names. So that has to be a character matrix.
Consider:
> BM <- matrix("0.1", 5, 5)
Use data.entry(BM) or similar to set some to more abstract values.
> BM[3,1] <- "a"
> BM[4,2] <- "b"
>
2012 Jan 18
1
png cairo device problems on Mac 10.6.8
Hi all,
I have been having problems generating png files on a Mac running OS X 10.6.8.
Here's a simple example
> png("foo.png", type = "cairo"); plot(1:10); dev.off();
null device
1
libpng warning: Application built with libpng-1.2.26 but running with 1.5.2
The resultant file is of size 0 Kb.
Is this the proper place to report this issue? Or should
2012 Feb 23
1
Sexpr not getting expanded in Sweave
An Sweave file, 'test.Rnw':
\documentclass{article}
\title{Sweave minimal}
\author{MK}
\begin{document}
\maketitle
We try Sweave:
<<1>>=
data(airquality)
summary(airquality)
x <- airquality[1, 1]
@
I try Sexpr: \Sexpr{x}
We plot:
\begin{center}
<<2, fig=TRUE, echo=FALSE >>=
boxplot(Ozone ~ Month, data = airquality)
@
\end{center}
\end{document}
I check the
2012 Feb 07
0
gmodels error: "no method for coercing this S4 class to a vector"
Dear All,
I'm having a problem using functions in the gmodels library on an object of class mer from the lmer package. Code for a reproducible example is below.
# Load lme4 library and sample data
library(lme4)
library(faraway)
library(gmodels)
data(penicillin)
# Fit a linear mixed effects model
fit4 <- lmer(yield ~ treat + (1|blend), penicillin)
# Extract confidence intervals
2012 Feb 03
3
Cannot get "==" operator to return TRUE
I have a data.frame named "df". The dput of df is at the bottom of this e-mail.
What I'd like to do is replace the "n/a " values with NA. On Mac OSX, it works
to do this:
df[df == "n/a"] <- NA
However, it does not work on Ubuntu. See below.
Thanks in advance,
Garrett
> x <- df[27, 4] # complete data.frame dput is below
> dput(x)
"n/a?"
2012 Oct 11
1
Problems with getURL (RCurl) to obtain list files of an ftp directory
Dear all,
I have a problem with the command 'getURL' from the RCurl package, which I
have been using to obtain a ftp directory list from the MOD16 (ET, DSI)
products, and then to download them. (part of the script by Tomislav
Hengl, spatial-analyst). Instead of the list of files (from ftp), I am
getting the complete html code. Anyone knows why this might happen?
This are the steps i
2012 Feb 12
5
Sample function in R
Hi,
Can anyone help me with the sample () in R?
If I sample from x, I should get one integer. Can anyone tell me what's
wrong here?
> x =1:12
> sample(x)
[1] 6.5
And, I cannot get the sample with size = 2
> sample(x, size = 2)
Error in sample(x, size = 2) : unused argument(s) (size = 2)
> sample(x, 2)
[1] 54.16667
Thank you in advance
[[alternative HTML version deleted]]
2012 Feb 23
1
R devel [and R 2.14.1 patched]: R CMD build now sources ~/.Rprofile
I'd like to follow up on this one. It may be that I have
misunderstood something, but on both R devel (2012-02-22 r58452) and R
2.14.1 patched (2012-02-18 r58394) I can't seem to avoid loading
~/.Rprofile when I run 'R CMD <cmd>', e.g. R CMD build. For me, the
loading of ~/.Rprofile by 'R CMD' started a few weeks ago, and I
haven't seen it before. More details
2011 Dec 29
1
Crashing R with readline()
I get the following with R v2.14.1 patched on Windows 7:
% Rterm --vanilla --silent
> sessionInfo()
R version 2.14.1 Patched (2011-12-26 r58001)
Platform: x86_64-pc-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base
2012 Jun 02
2
Double-buffering problem, this time with an example.
Most of my animations that used to work
on windows() version 2.11.1 and earlier now flash
as if the double buffering is turned off or buffer swapping
is triggered by other events than in the past.
The simplified example below using symbols
should illustrate the problem in a windows environment.
windows()
radius <- 8
n <- 6
ang <- seq(0,2*pi,length=n+1)[-(n+1)]
ca <- cos(ang)
sa
2012 Mar 04
1
quantmod getOptionChain Not Work
Dear R Helpers,
I am still having trouble with the getOptionChain command in quantmod. I
have the latest version of quantmod, etc. so I was under the impression
that the problem was solved with updates to the package.
If someone could let me know what I need to install in order to make this
work, I would really appreciate it.
My error message as session info are shown below. Thanks a bunch.
2012 Jul 17
1
R CMD build/check on Windows 7
Folks:
sessionInfo()
R version 2.15.0 (2012-03-30)
Platform: i386-pc-mingw32/i386 (32-bit)
locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] datasets splines grid tcltk stats graphics grDevices
[8] utils
2012 Apr 21
2
Date object
HI,
I have to work with data objects. I have trouble. I would like to convert
date to a integer of Julian dates omitting hours, minutes etc. I tried as.
Date and also as.POSIXlt, ct etc.
Please help me to compute the following difference. I get an "NA" for
output.
1/14/2006 0:00:00 AM -1/9/2006 0:00:00 AM
Thanks.
Chetty
--
Professor of Family Medicine
Boston University
Tel:
2017 Aug 07
1
tidyquant error downloading symbols for Index
Hi R Helpers,
I recently tried to take advantage of the ability to download all the
tickers in the S&P 500 using the functionality of tidyquant, but it threw
an error.
For summary, the set of commands that I ran was
library(tidyquant)
tq_index_options()
tq_index("SP500")
sessionInfo()
R feedback including error message and sessionInfo are provided below.
Guidance would be