Marc:
You miss Yihui's point I think: roxygen2 will generate the (Namespace
and other) files for you. See its documentation for how (the
directives to put in your comments).
-- Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along
and sticking things into it."
diff() does not work on data.frames so you need to give it a column
from the data.frame, as a vector.
diff(data.frame(P=c(1,2,3,5,7,11,13,17))$P)
[1] 1 1 2 2 4 2 4
You get different errors for multi- and single-column data.frames
> diff(data.frame(P=c(1,2,3,5,7,11,13,17), F=c(1,1,2,3,5,8,13,
Dear R users,
I have a txt file entitled coc composed by one column of numeric values
without header and having 50 rows. This file is under the following path:
C:\\Users\\intel\\Documents\\TR
I have written the following lines:
xcx=read.table("C:\\Users\\intel\\Documents\\TR\\coc.txt",header=F)
Since 2008, Microsoft (formerly Revolution Analytics) staff and guests have
written about R every weekday at the
Revolutions blog: http://blog.revolutionanalytics.com
and every month I post a summary of articles from the previous month of
particular interest to readers of r-help.
And in case you
Hi Somayya,
When you perform a t-test on two sets of numeric values, the answer
you get tells you how likely it is that those two sets of numbers came
from the same distribution. What most people are interested in is
whether the means of those two distributions are different. Let's see,
you seem to
> On Feb 6, 2017, at 9:08 AM, Jeff Newmiller wrote:
>
> I think it is important to point out that whenever R treats a number as a
> numeric (integer or double) it loses any base 10 concept of "leading zero" in
> that internal representation, so in this expression
>
> seq2 <- paste0("DQ", spri
Greetings Peter and Jeff,
Thanks for this information. Will try these type of analyses in SAS.
Sure they are doable in R, but developing a procedure is difficult.
Alan Agresti gives a cookbook SAS method in An Introduction to
Categorical Analysis.
Thanks,
James
On Sun, Feb 5, 2017 at 3:47 PM, J
Shouldn't your "[:digit:]" be "[[:digit:]]"?
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Mon, Feb 6, 2017 at 10:36 AM, Tilmann Faul wrote:
> Using R is a grate advantage, thanks for your work.
>
> Using regex under R 3.1.1, Debian 8.6 jessy works fine.
>
> str_detect("16-03-08", "[:digit:]{2
Using R is a grate advantage, thanks for your work.
Using regex under R 3.1.1, Debian 8.6 jessy works fine.
str_detect("16-03-08", "[:digit:]{2}")
[1] TRUE
str_detect("16-03-08", "[0-9]{2}")
[1] TRUE
runing the same code under R 3.3.2 backport, Debian 8.6 jessy gives a
different result. This is
Le 06/02/2017 à 17:14, Yihui Xie a écrit :
If your package source is version controlled (meaning you are free to
regret any time), I'd recommend you to delete the three files
NAMESPACE, chr.Rd, and essai-package.Rd. Then try to roxygenize again.
Basically the warnings you saw indicates that roxyg
Perhaps someone could, but:
1) It is normal on public Internet mailing lists and forums to simply ask the
actual question and let people respond if they know the answer, rather than
asking for permission to ask.
2) You should read the Posting Guide for this mailing list... your question
does n
I think it is important to point out that whenever R treats a number as a
numeric (integer or double) it loses any base 10 concept of "leading zero" in
that internal representation, so in this expression
seq2 <- paste0("DQ", sprintf("%06d", seq(060054, 060060)))
the arguments to seq have leadin
If your package source is version controlled (meaning you are free to
regret any time), I'd recommend you to delete the three files
NAMESPACE, chr.Rd, and essai-package.Rd. Then try to roxygenize again.
Basically the warnings you saw indicates that roxygen2 failed to find
the line
% Generated by r
Hi,
I used roxygen2 v5.0.1 to document my package, and all was ok. I have
just updated to roxygen2 v6.0.0 and my script is broken and I can't find
why.
I have done a simple version of a package folder as a test with 3 files:
chr.R, essai-package.R and DESCRIPTION.
Previously, I did:
packa
Hello for my project I am trying to write up my results from the paired t-test
I conducted.
Please could someone help.
Thank you,
Somayya Gardee
NHSGG&C Disclaimer
The information contained within this e-mail and in any
Two methods, among others:
seq1 <- paste("DQ", sprintf("%0*d", 6, seq(060054, 060060)), sep = "")
or
seq1 <- paste("DQ", formatC(seq(060054, 060060), dig = 5, flag = 0), sep =
"")
Hth,
Adrian
On Mon, Feb 6, 2017 at 3:50 AM, Nabila Arbi
wrote:
> Dear R-Help Team!
>
> I have some trouble with
You need the leading zeros, and 'numerics' just give the number without
leading zeros. You can use 'sprintf' for create a character string with
the leading zeros:
> # this is using 'numeric' and drops leading zeros
>
> seq1 <- paste("DQ", seq(060054, 060060), sep = "")
> seq1
[1] "DQ60054" "DQ600
Hi Nabila,
This is because you ask to create a sequence with seq(), which does not
make much sense with non numeric data. That's why R trims the 0.
One alternative would be:
seq2 <- paste("DQ0", seq(60054, 60060), sep = "")
Would that work for you?
HTH,
Ivan
--
Ivan Calandra, PhD
MONREPOS A
Try this:
seq1 <- paste("DQ0", seq(60054, 60060), sep = "")
Jean
On Sun, Feb 5, 2017 at 7:50 PM, Nabila Arbi
wrote:
> Dear R-Help Team!
>
> I have some trouble with R. It's probably nothing big, but I can't find a
> solution.
> My problem is the following:
> I am trying to download some sequen
What does the function ksmooth() to correct bias? Reading articles gives me the
formula:
\frac{$B-t(B^n_{i=1}K_h(x-x_i)y_i}{$B-t(B^n_{j=1}K_h(x-x_j)}
For the Nadaray-Watson estimator. The same formula is stated in the
documentation for the function:
NadarayaWatsonkernel(x, y, h, gridpoin
Dear R-Help Team!
I have some trouble with R. It's probably nothing big, but I can't find a
solution.
My problem is the following:
I am trying to download some sequences from ncbi using the ape package.
seq1 <- paste("DQ", seq(060054, 060060), sep = "")
sequences <- read.GenBank(seq1,
seq.names
Hello useRs,
I am announcing the release of my first package, usmap (
http://cran.r-project.org/package=usmap).
"usmap" is a package to aid in the creation of US choropleths that include
Alaska and Hawaii. It is still in its early stages (v 0.1.0) but I hope to
improve it with added functionality
22 matches
Mail list logo