Displaying 20 results from an estimated 3000 matches similar to: "R2wd- how to open an existing document"
2012 Jun 07
1
R2wd error in wdGet
Dear list,
I'm trying to use R2wd package. I've installed the package and try wdGet().
However a error message came up. I'm presently using R 2.15.0
> wdGet()
Error in if (wdapp[["Documents"]][["Count"]] == 0)
wdapp[["Documents"]]$Add() :
argument is of length zero
Does anyone knows what this means?
Thanks a lot.
Andreia Leite
--
View this
2012 Jul 23
1
R2wd package wdGet() error
I am having trouble using the R2wd package. The last time I used it
successfully, I was running an earlier version of R and an earlier version
of Word with an earlier Windows OS. I'm not sure which if any of these
changes might be contributing to the problem. Right now I'm using
R version 2.15.0 (2012-03-30) for Windows
MS Word 2010 version 14.0.6112.5000 (32-bit)
2011 Apr 03
1
another question on shapefiles and geom_point in ggplot2
Manuel:
I changed your variable names from x to 'long' and y to 'lat' on the
riqueza_out.csv file.
The code below should do what you want. Also, since the legend title is kind of
long, I broke it
down into three lines so you can see more plot area. I am cc'ing the other
groups so more people
use it if needed.
library(rgdal)
library(ggplot2)
library(sp)
library(maptools)
2012 Dec 17
5
save to file
Hi,
What's the equivalent of "Save to File" from the R console File menu on an R routine? Just trying
to capture the whole R console into a text file when my code fails.
Felipe D. Carrillo
Supervisory Fishery Biologist
Department of the Interior
US Fish & Wildlife Service
California, USA
http://www.fws.gov/redbluff/rbdd_jsmp.aspx
[[alternative HTML version deleted]]
2010 Oct 01
3
gridExtra question
?
Hi:
I get?a couple of warnings? when trying to download gridExtra:
install.packages("gridExtra",repos=http://R-Forge.R-project.org)
?Warning: unable to access index for repository
http://R-Forge.R-project.org/bin/windows/contrib/2.10
Warning message:
In getDependencies(pkgs, dependencies, available, lib) :
? package ?gridextra? is not available
I would like to download the binary
2009 Jan 21
4
seq()
HI:
Could someone help me with the seq function? I have a range of values starting from 1 to 52 but I want seq to start at 27 by=2, but when it reaches 51 start with with number 1 to 25. is this possible. I can do the basics of seq() but I can't figure how to do this one. This is how I want my sequence to look like:
27 29 31 33 35 37 ............51 1 3 5 7 9 11 13 ...........25
Felipe D.
2010 Jul 24
2
How to generate a sequence of dates without hardcoding the year
Hi:
I have a dataframe named 'spring' and I am trying to add a new variable named
'IdDate'
This line of code works fine:
spring$idDate <- seq(as.Date("2008-07-01"),as.Date("2009-06-30"),by="week")
But I don't want to hardcode the year because it will be used again the
following year
Is it possible to just generate dates with the month and
2008 Aug 10
2
detect if data is normal or skewed (without a boxplot)
Hello all:
Is there a way to detect in R if a dataset is normally distributed or skewed without graphically seeing it? The reason I want to be able to do this is because I have developed and application with Visual Basic where Word,Access and Excel "talk" to each other and I want to integrate R to this application to estimate confidence intervals on fish sizes (mm). I basically want to
2009 Apr 30
1
odbcConnectAccess function
HI:
Is it possible to use the RODBC package within MS Access. I have been using from R but was just wondering if it could be used along with R(D)COM. Something like this:
Dim dbs As DAO.Database
Dim rst As DAO.Recordset
Dim myApp As StatConnector
Set myApp = New StatConnector
myApp.GetErrorText
myApp.Init "R"
myApp.EvaluateNoReturn "library(RODBC)"
myApp.EvaluateNoReturn
2009 Mar 30
2
ggplot2-geom_text()
Hi: I need help with geom_text().
I would like to count the number of Locations
and put the sum of it right above each bar.
x <- "Location Lake_dens Fish Pred
Lake1 1.132 1 0.115
Lake1 0.627 1 0.148
Lake1 1.324 1 0.104
Lake1 1.265 1 0.107
Lake2 1.074 0 0.096
Lake2 0.851 0 0.108
Lake2 1.098 0 0.095
Lake2 0.418 0 0.135
Lake2 1.256 1 0.088
Lake2 0.554 1 0.126
Lake2 1.247 1 0.088
2010 Nov 29
2
drop levels problem
Hi all:
I am having trouble dropping levels, got a few hints online?without success.
Please consider the dataset below:
?I was under the inpression that subset(......drop=TRUE) would work but it
doesn't
library(ggplot2)
??? library(hmisc)
x <- structure(list(first = c(38.2086, 43.1768, 43.146, 41.8044, 42.4232,
46.3646, 38.0813, 40.0745, 40.4889, 38.6246, 40.2826, 41.6056,
34.5353,
2012 Jul 12
2
nls question
Hi:
Using nls how can I increase the numbers of iterations to go beyond 50.
I just want to be able to predict for the last two weeks of the year.
This is what I have:
weight_random <- runif(50,1,24)
weight <- sort(weight_random);weight
weightData <- data.frame(weight,week=1:50)
weightData
plot(weight ~ week, weightData)
M_model <- nls(weight ~ alpha +
2008 Oct 15
1
How to make the connection between MikTEX and R
Hi:
After a couple of days trying to synchonize or connect MiKTex and R I'm getting a little frustrated. My knowledge about creating and running batch
files is kind of limited so, I was wondering if someone could explain in plain english how to do this task. I'm able to run MiKtex by itself and accomplish what I am trying to do, but I want to be able to use the Sweave function from within
2009 Feb 11
1
function question
Hi everyone:
I did this before with R and I can't remember how.
I got some fish forklength values
FL number
34 4
35 3
36 7
I need to breakdown the FL by the number of fish with the same length
like this:
34 1
34 1
34 1
34 1
35 1
35 1
35 1
36 1
36 1
36 1
36 1
36 1
36 1
36 1
Felipe D. Carrillo
Supervisory Fishery Biologist
Department of the Interior
US Fish
2009 Sep 25
1
How to download from github
Hi:
Is my first attempt to try to download from github. Nothing happens by clicking on the 'download' button. Could anyone give me a hint on how to get all the files from the link below? Thanks
http://github.com/hadley/ggplot2-bayarea/tree/0a8bf71dea38cfbf2d928eb713d24dfd928359fc
Felipe D. Carrillo
Supervisory Fishery Biologist
Department of the Interior
US Fish & Wildlife
2010 Jun 10
1
Date conversion
Hi:
Can't find?a way to convert?from shortDate to LongDate format. I?got:
3/10/10 that I want to convert to March 10, 2010. I am using:
\documentclass[11pt]{article}
\usepackage{longtable,verbatim}
\usepackage{ctable}
\usepackage{datetime}
\title{my title}
\begin{document}
? % Convert date
\mmmmddyyyydate\3/10/10
end{document}?
My report is changing every two weeks so I?will eventually
use
2010 May 11
2
predicting without a model
Hello:
I have 5 years of weekly passage data and want to predict fish passage
for the following year. I don't have a model to use to predict data for
the sixth year. Can I somehow still predict based on these five years?
I just want to see on the graph what the predicted year would look like
and how those?new values are generated. Gracias?
?
?fall <- structure(list(week = c(48L, 49L, 50L,
2008 Oct 28
1
does qplot works with Sweave?
Hi Hadley:
I'm practicing writing a document using MikTex but can't make qplot to execute. It works when using 'plot' though. Is this a normal behaviour?
\documentclass[9pt]{article}
\title{ggplot2 example}
\begin{document}
\maketitle
\section*{Examples of using ggplot2}
The goal is to be able to import ggplot2 graphics into the annual report.
Hadley Wickham has done a great
2010 Apr 29
1
Sweave question
Hi:
I am using Sweave and texi2dvi to generate a LaTeX document but
can't find the way to hide the graphics while the R chunks are being
executed. I thought results=hide would do it but that't not the case.
If I do:
\begin{figure}[h]
<<figA=true,echo=F,fig=T,results=hide>>=
a < rnorm(1000)
plot(a)
@
\caption{Weekly estimates.}
\label{figure:ggplot1}
\end{figure}
The
2010 Jul 13
2
Wrap column headers caption
Hi:
Using this dataframe with quite long column headers, how can I wrap the
text so that the columns are narrower. I was trying to use strwrap without
success. Thanks
reportDF <- structure(list(IDDate = c("3/12/2010", "3/13/2010", "3/14/2010",
"3/15/2010"), FirstRunoftheYear = c("33 (119 ? 119)", "n (0 ? 0)", "893 (110 ?