Displaying 20 results from an estimated 40000 matches similar to: "R CMD check and interfacing packages"
2004 Nov 06
2
wishlist: better error message in R CMD check
I was running R CMD check on Windows XP 2.0.1beta and
got this:
Error in parse(file, n, text, prompt) : syntax error on 602
After a lot of aggravation I finally discovered that if I did
this:
copy *.R allofthem.R
and checked line 602 in allofthem.R that I could find the error.
I noticed that there are repeated references in the help archives
to this sort of error and how hard it is to locate
2005 Jun 30
5
答复: fail in adding library in new version.
Dear Gabor,
Thank your for helping me so much!
I have loaded R the newest version 2.1.1. Then I setup it in the path of D:\program files\R\
1. unpack tools.zip into c:\cygwin
2. install Active perl in c:\Perl
3. install the mingw32 in c:\mingwin
4. add "c:\cygwin; c:\mingwin\bin" in "Control Panel -> System -> Advanced -> Environment Variables -> Path ->
2010 Jul 26
7
Bug on r-bc?
Dear All,
The following code should return 1, but it returns 0:
source("http://r-bc.googlecode.com/svn/trunk/R/bc.R")
bc("9 % 2")
Do you confirm this bug?
Paul
2006 Mar 25
7
Regexp subexpression
I can't get the PERL subexpression translated to R. Following, for example,
B. Ripley's
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/58984.html
I am using sub, but it looks like an ugly substitute. Assume I want to
extract the first alpha part and the first numeric part, but only if they
are in sequence.
Do I really have to use the sub twice, first extracting the first variable,
then
2004 Dec 24
6
Sorting problem
Hi
I'm using R 2.0 in SuSE 9.2.
When I plot data as a boxplot, the boxes appear on the plot in
alphabetical order (of group) rather than the order in which they appear
in the data. So far, the only thing I can do to fix this is to prefix
the group labels with a,b,c...etc to trick R into plotting them in the
right order.
Can sorting be turned off?
How should I address this sensibly?
Thanks
2004 Mar 18
12
substitute question
Consider the following example:
# substitute a with b in the indicated function. Seems to work.
> z <- substitute( function()a+1, list(a=quote(b)) )
> z
function() b + 1
# z is an object of class call so use eval
# to turn it into an object of class expression; however,
# when z is evaluated, the variable a returns.
> eval(z)
function()a+1
Why did a suddenly reappear again
2008 Nov 29
2
Using grep() to subset lines of text
I have two vectors, a and b. b is a text file. I want to find in b those
elements of a which occur at the beginning of the line in b. I have the
following code, but it only returns a value for the first value in a, but I
want both. Any ideas please.
a = c(2,3)
b = NULL
b[1] = "aaa 2 aaa"
b[2] = "2 aaa"
b[3] = "3 aaa"
b[4] = "aaa 3 aaa"
2002 Feb 26
3
Matrix of Elements of Different Types (was Interfacing pre-existing C++ library from R)
--- Prof Brian D Ripley <ripley@stats.ox.ac.uk> wrote:
>A matrix list? R lists are just vectors with elements of different types,
>and R matrices are just vectors with a dimension attribute.
When I saw the above I tried to create a matrix from a list but
could not get it to work:
my.lm <- lm( rnorm(10) ~ I(1:10) )
my.list <- list(1, 2, 3, 4, 5, 6, my.lm, my.lm, my.lm)
2010 Jul 10
7
Need help on date calculation
Hi all, please see my code:
> library(zoo)
> a <- as.yearmon("March-2010", "%B-%Y")
> b <- as.yearmon("May-2010", "%B-%Y")
>
> nn <- (b-a)*12 # number of months in between them
> nn
[1] 2
> as.integer(nn)
[1] 1
What is the correct way to find the number of months between "a" and "b",
still
2005 May 17
4
Combinations with two part column
Dear R-helpers,
I am a beginner using R.
This is the first question in this list.
My question, Is there possible to make combinations with two part column?
If I have a number 1,2,3,4,5,6,7,8. I need the result something like below:
1,2,3,4,5 6,7,8
1,2,3,4,7 5,6,8
2,3,4,5,6 1,7,8
1,2,3,6,7 4,5,8
1,2,3,4,8 5,6,7
3,4,6,7,8 1,2,5
....
I would be very happy if anyone could
2023 Nov 14
1
data.frame weirdness
Also why should that difference result in different behavior?
On Tue, Nov 14, 2023 at 9:38?AM Gabor Grothendieck
<ggrothendieck at gmail.com> wrote:
>
> In that case identical should be FALSE but it is TRUE
>
> identical(a1, a2)
> ## [1] TRUE
>
>
> On Tue, Nov 14, 2023 at 8:58?AM Deepayan Sarkar
> <deepayan.sarkar at gmail.com> wrote:
> >
> >
2006 May 15
3
Dyn or Dynlm and out of sample forecasts
All:
How do I obtain one step ahead out-of-sample forecasts from a model
using "dyn" or "dynlm" ?
Thanks!
Best,
John
[[alternative HTML version deleted]]
2018 Jan 25
6
Portable R in zip file for Windows
What is wrong with you guys? I asked for a zip, like R Studio has for
example. Totally clear.
I cant execute exes. But I can unzip files.
Thanks Gabor, I had that in mind, but can't execute the exe due to security
restrictions.
Geez, really, treating people who ask questions this way just makes you
don't want to ask a single one.
On Thu, Jan 25, 2018, 11:19 Gabor Grothendieck
2018 Jan 26
2
Portable R in zip file for Windows
Pretty good question Gabor. I can execute R once it is installed (if
someone with rights installs it before) but not the installer. I can
download the installer (with some pain). I know that some installers are
actually compressed files in disguise, but I think this is not the case
with R, right?
I will study the exact nature of the restriction, and get back to you.
Nevertheless, having a
2023 Nov 14
1
data.frame weirdness
On Tue, 14 Nov 2023 at 09:41, Gabor Grothendieck
<ggrothendieck at gmail.com> wrote:
>
> Also why should that difference result in different behavior?
That's justifiable, I think; consider:
> d1 = data.frame(a = 1:4)
> d2 = d3 = data.frame(b = 1:2)
> row.names(d3) = c("a", "b")
> data.frame(d1, d2)
a b
1 1 1
2 2 2
3 3 1
4 4 2
> data.frame(d1,
2006 Jan 10
5
matching country name tables from different sources
Hi,
Before I reinvent the wheel I wanted to kindly ask you for your opinion if there is a simple way to do it.
I want to merge a larger number of tables from different data sources in R and the matching criterium are country names. The tables are of different size and sometimes the country names do differ slightly.
Has anyone done this or any recommendation on what commands I
2009 Jun 19
3
please recommend hands-on books on classification, data-mining and machine learning with R?
Hi all,
Could anybody please recommend some hands-on books on classification,
data-mining and machine learning with R? I would like to get a very
good understanding of the statistical tools that are used in these
areas, while reducing the learning curve.
Thank you!
2003 Dec 19
5
for loop over dataframe without indices
One can perform a for loop without indices over the columns
of a dataframe like this:
for( v in df ) ... some statements involving v ...
Is there some way to do this for rows other than using indices:
for( i in 1:nrow(df) ) ... some statements involving df[i,] ...
If the dataframe had only numeric entries I could transpose it
and then do it over columns but what about the general case?
2004 Nov 18
5
Building Packages on Windows using .Rbuildignore (PR#7379)
On Thu, 18 Nov 2004 00:38:47 +0000 (UTC), Gabor Grothendieck
<ggrothendieck@myway.com> wrote :
>DIFFERENCE BETWEEN USING .RBUILDIGNORE AND NOT
>
>The reason that the processing is different according to whether one
>uses .Rbuildignore or not is that
> R CMD build
>takes the .Rbuildignore file into account but
> R CMD install
> R CMD check
> R CMD build
2006 Dec 27
5
plotting time series with zoo pckg
Hi all,
I am using the zoo package to plot time series. I have a problem with formatting the axes.
my zoo object (z) looks like the following.
c1
1992-01-10 21
1992-01-17 34
1992-01-24 33
1992-01-31 41
1992-02-07 39
1992-02-14 38
1992-02-21 37
1992-02-28 28
1992-03-06 33
1992-03-13 40