Hi Mr. Ligges,
doing as you said R responds with
install.packages("foreign")
trying URL
'https://cran.uni-muenster.de/bin/windows/contrib/3.3/foreign_0.8-67.zip'
Warning in install.packages :
cannot open URL
'https://cran.uni-muenster.de/bin/windows/contrib/3.3/foreign_0.8-67.zip':
HTTP stat
Thanks Hadley!
While I got your attention, what is a good way to get started on ggplot2? ;)
My impression is that I first need to learn plyr, dplyr, AND THEN ggplot2.
That's A LOT!
Suppose i have this:
iris
iris2 <- cbind(iris, grade = sample(1:5, 150, replace = TRUE))
iris2
I want to have some
Hello All,
I am writing a package. I would like to encourage the user to look at the
data to rectify errors with function A before utilizing function B to code
these data as binary. I thought about solving this problem by adding a
"flag" in the attributes that could be used downstream in B, and ha
On Mon, 20 Feb 2017, stephen sefick wrote:
Hello,
I would like to add something to a data frame that is 1) invisible to the
user, 2) has no side effects, and 3) I can test for in a following
function. Is this possible? I am exploring classes and attributes and I
have thought about using a list
Just as clarification, I don't want to hide anything from the user. I just
want to add something that I can test for in downstream function. I
appreciate all of the help.
kindest regards,
Stephen
On Mon, Feb 20, 2017 at 5:53 PM, Bert Gunter wrote:
> Yes.
>
> To elaborate a bit on Ista's reply:
Yes, I mean "won't annoy the user", will allow them to do anything they
need to do with a dataframe (write to csv, etc.), but will allow me to test
for in a down stream function of the analysis to stop the function and
present an error. Adding something to the class attribute seems like the
right t
Yes.
To elaborate a bit on Ista's reply:
A) The only way I can imagine hiding info from a user would be to encrypt
it. This could be done programmatically I think, but I would have to
research it to figure out how.
B) If all you want to do is prevent the info from being printed, just
create e.
It depends on what you mean by 1). If you mean "won't annoy the user" then
yes, e.g., add something to the class attribute. If 1) means "can't be
discovered by the user" then no (at least not easily). Anything you can see
they can see.
Best,
Ista
On Feb 20, 2017 4:21 PM, "stephen sefick" wrote:
On Mon, Feb 20, 2017 at 03:41:50PM -0600, Glenn Schultz wrote:
> All,
>
> I have the following files in a directory and I would like only a list of
> those starting with “lld" and ending with “dat”. I used the following and it
> gives me the lld files
>
> list.files(path = readpath, pattern
On 21/02/17 10:41, Glenn Schultz wrote:
All,
I have the following files in a directory and I would like only a list of those
starting with “lld" and ending with “dat”. I used the following and it gives
me the lld files
list.files(path = readpath, pattern = "^lld[A-Z0-9]")
to get just .dat
Hello,
Maybe if you change the pattern to
"^lld[A-Z0-9]*\\.dat$"
Hope this helps,
Rui Barradas
Em 20-02-2017 21:41, Glenn Schultz escreveu:
All,
I have the following files in a directory and I would like only a list of those
starting with “lld" and ending with “dat”. I used the following
All,
I have the following files in a directory and I would like only a list of those
starting with “lld" and ending with “dat”. I used the following and it gives
me the lld files
list.files(path = readpath, pattern = "^lld[A-Z0-9]")
to get just .dat files I tried
list.files(path = readpa
The default for read.csv() is stringsAsFactors=TRUE when creating a data frame
so all the character strings in your .csv file were converted to factors:
> testtable <- read.csv("clipboard", header=F)
> str(testtable)
'data.frame': 6 obs. of 5 variables:
$ V1: int 20170101 20170101 20170101 2
Hello,
I would like to add something to a data frame that is 1) invisible to the
user, 2) has no side effects, and 3) I can test for in a following
function. Is this possible? I am exploring classes and attributes and I
have thought about using a list (but 1 and 2 not satisfied). Any help would
be
Readers,
Data set:
20170101,10020,A,b,Y
20170101,10020,B,b,N
20170101,10020,C,d,Y
20170102,20001,C,d,Y
20170102,20001,D,m,Y
20170102,20001,L,a,Y
testtable<-read.csv('~/tmp/data.csv',header=F)
testtablea<-testtable[grep('^10',testtable[,2]),]
testtable
V1V2 V3 V4 V5
1 20170101 1002
Hi Malgorzata,
There is currently another thread on the list about attaching R code
to emails. The problem appears to be that if you attach a file with
the extension ".R" it is sent in a way that is blocked by the mail
server. If you want to attach an R code file to your message, change
the extensi
foreign is a recommended package that is already part of your R
installation. and there shoudl not be a problem to install a recent
version of it.
What is the error message of you run
install.packages("foreign") from a new R session?
Best,
Uwe Ligges
On 20.02.2017 17:33, g.maub...@weinwolf.
Not by the mail server as such, no, at least not for that reason. However,
T-bird likely sends .txt as text/plain and .R as application/octet-stream (or
so) and _therefore_ the server eliminates the latter and lets the former pass.
-pd
> On 20 Feb 2017, at 15:45 , Rui Barradas wrote:
>
> Hell
Dear all,
I am using JRI to execute a number of computations using the R engine. As
pointed in various tutorials out there in the web I am using the eval method of
the Rengine class, e.g.:
engine.eval("meanVal=mean(rVector)");
At some point the eval method starts returning NULL, which accordin
Dear all,
I would like to perform a Linkage Disequilibrium analysis on RADseq matrix.
Can anyone suggest me which R package and function should i use and which
kind of input file i should prepare?
Thank you in advance for your help and time.
Giulia
[[alternative HTML version deleted]]
_
rpg is a package for working with postgresql: https://github.com/thk686/rpg
odeintr is a package for integrating differential equations:
https://github.com/thk686/odeintr
Cheers,
THK
http://www.keittlab.org/
[[alternative HTML version deleted]]
__
The quantile function is just the inverse of the distribution function, so
if you have the latter you can always get the former, e.g by simple
interpolation using approx(). Assuming you can't find it already written
for you of course.
Bert
On Feb 20, 2017 7:15 AM, "li li" wrote:
> Hi all,
>
Hi all,
Is there a function in R that can calculate the quantiles or percentiles
for the weighted sum of independent chi square random variables. I found a
few functions for calculating probability distribution function for such
random variables (e.g. pchisqsum..), but can not find any function
> On Feb 20, 2017, at 8:12 AM, Hadley Wickham wrote:
>
> On Sun, Feb 19, 2017 at 3:01 PM, David Winsemius
> wrote:
>>
>>> On Feb 19, 2017, at 11:37 AM, C W wrote:
>>>
>>> Hi R,
>>>
>>> I am a little confused by the data.table package.
>>>
>>> library(data.table)
>>>
>>> df <- data.frame(
Hi Martin,
Hi Ulrik,
I am still working on the answer. I got a message from RStudio team but I
am still working on the clearification of the answer and a possible
solution.
Kind regards
Georg
Von:Martin Maechler
An: ,
Kopie: Ulrik Stervbo , R-help mailing list
Datum: 09.02.20
Hi All,
I tried to use packrat on
R version 3.3.2 (2016-10-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=German_Germany.1252
[2] LC_CTYPE=German_Germany.1252
[3] LC_MONETARY=German_Germany.1252
[4] LC_NUMERIC=C
[5
On Sun, Feb 19, 2017 at 3:01 PM, David Winsemius wrote:
>
>> On Feb 19, 2017, at 11:37 AM, C W wrote:
>>
>> Hi R,
>>
>> I am a little confused by the data.table package.
>>
>> library(data.table)
>>
>> df <- data.frame(w=rnorm(20, -10, 1), x= rnorm(20, 0, 1), y=rnorm(20, 10, 1),
>> z=rnorm(20, 20
On Mon, Feb 20, 2017 at 7:31 AM, Martin Maechler
wrote:
>> Hervé Pagès
>> on Tue, 14 Feb 2017 17:10:05 -0800 writes:
>
> > Hi, tapply() will work on any object 'X' that has a length
> > and supports single-bracket subsetting. These objects are
> > sometimes called "vector-
Go back and read the Posting Guide.
1) Missing code. Only certain types of attachments get through, and the
recommendation is to include everything in the body of the email. Whatever you
did, it did not get through to us.
2) Please make it clear what results you obtained and what results you
I try to do optimisation of the system of the differential equations. I've
managed to make my exemplary code working, however after changing equations on
the exact model and data on the real one, I get an error messages and code
doesn't work.
I have a partial data for L (concentrations were ass
Dear R users,
I am pleased to announce that the package mfe (Meta-Feature Extractor) is
now
available on CRAN (https://cran.r-project.org/package=mfe).
The mfe package extracts meta-features from datasets to support the design
of
recommendation systems based on Meta-Learning. The meta-features, a
Hello,
I use Mozilla Thunderbird and I don't see a way of teaching it about the
mime type.
My understanding is that files with the .R extension are eliminated by
the r-help mail server, but .txt pass. Is this correct?
Rui Barradas
Em 20-02-2017 14:15, Martin Maechler escreveu:
Rui Barradas
> Rui Barradas
> on Sat, 18 Feb 2017 13:47:02 + writes:
> Helo, No attachment came through. Change the file
> extension from .R to .txt and resend, there aren't many
> types of files r-help accepts.
> Rui Barradas
As a matter of fact, one would have to blame the
> Hervé Pagès
> on Tue, 14 Feb 2017 17:10:05 -0800 writes:
> Hi, tapply() will work on any object 'X' that has a length
> and supports single-bracket subsetting. These objects are
> sometimes called "vector-like" objects. Atomic vectors,
> lists, S4 objects with a "len
Dear all,
I want to run an impulse response analysis using the vars() package. The code
looks as follwows.
# list of class varest
varest.USA<-VAR(VAR_analsis_DataUSA, lag.max = 24, ic = "SC", type = "both")
varest.USA
summary(varest.USA)
#Run irf analysis
irf.USAg<-irf(varest.USA, respons
35 matches
Mail list logo