Displaying 20 results from an estimated 10000 matches similar to: "density plot with frequency units"
2013 Jan 26
1
Attempting to confirm a program i wrote in C (normalize 2 datasets, transform into histogram, transform into CDF, perform KS test)
I have written a program in C that two xy datasets, aligns these 2 datasets
based on shared features, transforms them into equal sized histograms,
transforms the histograms into cumulative distribution functions (via GSL)
and finally performs a KS_test.
I am wanting to validate my program's results and figure'd i would use R but
i am kinda stuck at ithe histograms (I have 2 histogram
2011 Aug 15
3
write.table extra column
In the following data.frame there are 6 columns, but 7 are written to
the CSV file.
install.packages("pmlr")
library(pmlr)
data(enzymes)
write.table(enzymes, sep=",", eol="\n",file="albert.csv")
2018 Mar 27
5
unable to move temporary installation of package
Thanks,
Here's the error, for example:
> install.packages("mgcv")
Installing package into 'C:/Users/pl39/Documents/R/win-library/3.4'
(as 'lib' is unspecified)
trying URL 'https://mirrors.nics.utk.edu/cran/bin/windows/contrib/3.4/mgcv_1.8-23.zip'
Content type 'application/zip' length 2775362 bytes (2.6 MB)
downloaded 2.6 MB
package 'mgcv'
2011 Jul 19
3
How to get predicted values of y for different x values?
Here is my model with interaction terms and control variables (I changed
variables names for easy read):
reg1 <- lm(y ~ x1*x2*x3 +control1 + control2 + control3)
x1 ranges from 0 to 6; x2 from 0 to 5; and x3 from 0 to 4. All three are
discrete ordinal variables; but I will treat them as continuous variables.
(a) How can I see the predicted values of y for each of these scenarios (210
2018 Mar 27
0
unable to move temporary installation of package
Do you have other instances of R open at the time you are doing this? Did
you already have mgcv installed in your personal library when you tried
installing it again?
There is clearly something preventing you from writing to your library, or
at least to specific packages in your library.
On Tue, 27 Mar 2018, Paul Lantos wrote:
> Thanks,
>
> Here's the error, for example:
>
2018 Mar 27
2
unable to move temporary installation of package
I deleted my library, reinstalled R, and had the same issue -- couldn't install anything into its newly created library.
-----Original Message-----
From: Jeff Newmiller [mailto:jdnewmil at dcn.davis.ca.us]
Sent: Tuesday, March 27, 2018 2:26 PM
To: Paul Lantos <paul.lantos at duke.edu>
Cc: r-help at r-project.org
Subject: RE: [R] unable to move temporary installation of package
Do you
2012 Mar 14
2
sum(hist$density) == 2 ?!
> x <- rnorm(1000)
> h <- hist(x,plot=FALSE)
> sum(h$density)
[1] 2 ----------------------------- shouldn't it be 1?!
> h <- hist(x,plot=FALSE, breaks=(-4:4))
> sum(h$density)
[1] 1 ----------------------------- now it's 1. why?!
--
Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000
http://www.childpsy.net/ http://www.memritv.org
2011 Aug 02
1
My R code is not efficient
Dear R users,
I have two n*1 integer vectors, y1 and y2, where n is very very large.
I'd like to compute
elbp = 4^(y1) * 5^(y2) * sum_{i=0}^{max(y1, y2)} [{ (y1-i)! * (i)! *
(y2-i)! }^(-1)];
that is, I need to compute "elbp" for each (y1, y2) pair.
So I made R code like below, but I don't think it's efficient
Would you plz tell me how to avoid this "for"
2011 Jul 04
1
R CMD SHLIB with ifort
Hi,
I am running Linux (64 bit) R, compiled under gnu compilers. I am looking
to compile a Fortran program with the ifort (the intel compiler) and then be
able to import that as a library into my version of R. I am using the
flags FC=ifort and SHLIB_FCLD=ifort, however ifort does not seem to
recognize the libR.so file.
Does any one have experience with this/know of a a way to load an ifort
2011 Aug 31
1
Error in setwd(dir) : cannot change working directory
Hello, I got some of the R source code and not being able to Run it in
RStudio.
I get the error:
Error in setwd("dir") :
cannot change working directory
I have gone through forums but nothing seemed relevant to my issue.
What bugs me the most is the ("dir") that the error shows, is of those who
wrote the source code and not mine(it still sees the directory of their
2011 Apr 27
1
Reading file
Hi all,
I am trying to read Excel file usingthe follwoing commnad
library(RODBC)
data=odbcConnectExcel(file.choose())
sqlTables(data)
Bdat=sqlFetch(data, "test")
odbcClose(data)
head(Bdat)
1. The above script works if the Excel file is opened. If the excel file is
not opened then I get the following message "External table is not in the
expected
2011 May 03
1
Rodbc quesion: how to reliably determine the data type?
Hello,
How can I tell RODBC to scan all the records of an xls file to determine the
data type? If the first n records happen to be empty Rodbc assumes a character,
and any numbers are made <NA>. And if, for instance, the first n records contain
numbers, and later they also contain characters, those characters become NA.
Cheers!!
Albert-Jan
2011 Sep 17
1
Extracting a a chunk of text from a pdf file
In an R script I need to extract some figures from many web pages in pdf format. As an example see http://www.terna.it/LinkClick.aspx?fileticket=TTQuOPUf%2fs0%3d&tabid=435&mid=3072 from which I would like to extract the "Totale: 1,025,823").
Is there any solution?
Ciao
Vittorio
2011 Oct 24
2
How to get intecerpt standard error in PLS
Hi
how do we get intercepts standard error. I'm using the package pls.
i got the coefficient but not able to get the stabdard error
--
View this message in context: http://r.789695.n4.nabble.com/How-to-get-intecerpt-standard-error-in-PLS-tp3932104p3932104.html
Sent from the R help mailing list archive at Nabble.com.
2011 Jun 12
1
Pointers in R
Hello Everyone,
I am new to R and would like to create a quad tree in R. However the problem
is that I don't think R has pointers. Is there any way to create a tree in
R?
Thanks
[[alternative HTML version deleted]]
2011 Jun 24
1
Is R a solution to my problem?
Hi, ALL,
My name is Igor and I am a Software Developer.
Recently I wrote a program for a company using C++.
The problem I am facing right now is that this program (demo) has to
run using web interface. I.e. the potential user goes to the website,
click on the link and the program executes somewhere on the server.
Would that be possible with the R extension / add-on?
Thank you.
2011 Jun 30
1
Upgrading R in Ubuntu
Dear All,
I wanted to install the reshape package which in turn requires the plyr.
When I tried to install plyr it says it needs
ERROR: this R is version 2.10.1, package 'plyr' requires R >= 2.11.0
My question is how do I upgrade my R ? I have Ubuntu 10.04.2 LTS.
Many thanks for your help.
[[alternative HTML version deleted]]
2011 Jul 04
1
wavelets
I'm new to the topic of wavelets. When I tried to use the mra function in the
wavelets package, the data is not getting compressed. eg. if the original
data has 500 values , the output data also has the same.
However in MATLAB, depending on the level of decompositon, the data gets
compressed.
How do I implement this in R?
--
View this message in context:
2011 Jul 16
1
MatchIt Package
Hi there dear R users!
Anyone knows why does matchit function returns error whenever the "hull" option is used (either "hull.both", "hull.control" or "hull.treat"). Things work well with all the rest of discard options.
This is the error msg.
>m.out.base <- matchit(formula=f, data=d, method=m, discard="hull.control")
[1]
2011 Aug 02
2
how to control to save plots to which dev
Hi,
I have a for loop to make 2 types of plots and I'd like to save one
type of plots to a pdf file and the other to another pdf file. How can
I control which plot will be saved to which pdf? Thanks
--
Best,
Zhenjiang