Displaying 20 results from an estimated 10000 matches similar to: "Applying a function to a dataframe"
2009 Jan 10
1
<no subject>
Very simple questions if anyone can help:
(1) what is the value in saving workspaces, which is offered at every close?
I thought it might save the set up of the GUI but I cant work out what it
does I run a script that loads the packages I need at the start of every
session.
(2) mathematica has a term (%) that when typed means the last returned
value, so > % + 1 say would return the last
2009 Feb 13
4
PCA functions
Hi All, would appreciate an answer on this if you have a moment;
Is there a function (before I try and write it !) that allows the input of a
covariance or correlation matrix to calculate PCA, rather than the actual
data as in princomp()
Regards
Glenn
[[alternative HTML version deleted]]
2012 Aug 15
1
shade overlapping portions of circles (or other shapes)
I'm making some illustrations and it would be convenient to
automatically shade the overlapping portions of circles. These
illustrations are for Social Choice theory, a field in political
science and economics. I've wrestled together some examples so you
can see what I mean, but have not mastered the "color overlapping
sections" problem (as you will see):
2009 Jan 14
6
Removing duplicates from a list
For a list say;
list1<-{1,2,3,4,5,2,1}
How do I remove the duplicates please?
My real list is 20,000 obs long of dates with many duplicates
Regards
Glenn
[[alternative HTML version deleted]]
2007 Jul 11
1
RPM Build Question
Hi People,
I have just started building my own RPMS on both Fedora and CentOS and
generally things have gone well. Currently I am trying to create RPMS
for some commercial software that we have purchased.
Step 1 was install the software using its JAVA Based installer
ensuring that all files were installed into a particular directory in
/usr/local.
Step 2 was create a tar file of the
2008 Mar 06
1
Interesting remarks about R back in 1999
Hi, this is not an R-help post, but I found this extract below that was
written by a leading mathematician back in 1999 when he was talking about
statistics and computing. I found it interesting to share and I ask your
opinion do you think this still holds today or things have changed? Thanks.
?...we would also like to mention that in our opinion Mathematica provides
an excellent and indeed
2009 Jan 19
3
Month tick marks on a plot()
Hi All,
I have a small dataframe [dates, values) I am plotting with
plot(df,type=²l²)
And the date date covers a year. The graph only have marks at Œ2008¹ and
Œ2009¹.
How do I get the months labeled at the bottom please
Thanks as always
Glenn
[[alternative HTML version deleted]]
2010 Jul 14
3
Mathematica and R
What are some effective ways to leverage the strengths of R and
Mathematica for the analysis of a single data set?
More specifically, are there any functions that can assist with any of
the following?
1. Calling an R function from Mathematica.
2. Calling a Mathematica function from R.
3. Using XML or another reliable data format to pass vectors, matrices,
and/or lists from one environment to
2006 Sep 01
1
integration problem with gamma function
Dear R-list members,
I have a problem with translating a mathematica script into R. The whole
script is at the end of the email (with initial values for easy
reproduction) and can be pasted directly into R. The problematic part
(which is included below of course) is
<--- Original Mathematica --->
(* p_svbar *)
UiA = Ni (Dsi - 2Di A + A^2)/2;
UiiA = Nii (Dsii - 2Dii A + A^2)/2;
psvbar =
2007 Jun 22
3
How to run "mathematica" or "c" programs in R?
I have some programs which were writen in mathematica or c language, but I
donot know how to use these software. So I want to run them in R.
Can I do it ?
How to run "mathematica" or "c" programs in R?
Jian Zhang
[[alternative HTML version deleted]]
2007 Oct 10
2
pt inaccurate when x is close to 0 (PR#9945)
Full_Name: Skylab Gupta
Version: R version 2.5.1 (2007-06-27)
OS: Windows XP
Submission from: (NULL) (216.82.144.137)
Hello,
I have been playing around with the statistical distributions in R. I think the
computations for the cumulative distribution function of the students t
distribution in R are not very accurate.
For instance, the cdf of a students t distribution with 13 degrees of freedom
2012 Mar 08
1
Doing Mathematica Quantile[] function in R
Hi all,
I am an R newbie trying to do some calculations I do in Mathematica in
R on a GNU/Linux system.
The main thing I am interested in doing is taking a 0.999 quantile on
a data set in a file who's data is normally distributed, say foo.csv.
e.g in Mathematica if I have something like this :
a=Import["foo.csv"]
b=Transpose[a][[1]]
Quantile[b,0.999]
In R I can load all the data
2010 Jul 17
2
re. Mathematica and R
David - information on calling R from within Mathematica can be found at the
following link:
http://www.mofeel.net/1164-comp-soft-sys-math-mathematica/13022.aspx
HTH,
Alan Kelly
2006 Mar 24
2
MacOS X Quartz Rendering?
I just tried rendering a plot of 166 data point (time series) on my PPC mac,
and compared it with the same data rendered by Mathematica. The R plotting is
very slow to paint and repaint, compared to Mathematica. This also makes it
extremely awkward to use in other documentation such as pdfLatex.
On closer inspection, it looks like the Mathematica plot is just a polyline,
while in R it is a
2006 Aug 07
1
mathematica -> r (gamma function + integration)
Dear R-list,
I try to transform a mathematica script to R.
#######relevant part of the Mathematica script
(* p_sv *)
dd = NN (DsD - DD^2);
lownum = NN (L-DD)^2;
upnum = NN (H-DD)^2;
low = lownum/(2s^2);
up = upnum/(2s^2);
psv = NIntegrate[1/(s^NN) Exp[-dd/(2s^2)]
(Gamma[1/2,0,up] + Gamma[1/2,0,low]),{s,sL,sH},
MinRecursion->3];
PSV = psv/Sqrt[2NN];
Print["------------- Results
2009 Jan 18
1
Multiplication of dataframes
If I have 2 data frames;
df1: dim(df1) = (1,10)
df2: dim(df2) = (2000,10)
Both with column header names, how do I multiply them together please. I.e
create a dateframe dim() = (2000,1)
Many Thanks in advance
Glenn
[[alternative HTML version deleted]]
2009 Feb 06
2
does R plus 3.3 need vista ?
Hi all - has anyone ot and experienced problems with R+.
Have downloaded the trail and it will not work -does it need vista (like it
says on the box!)
Thanks
glenn
[[alternative HTML version deleted]]
2006 Oct 16
1
The old question: R vs MATLAB vs Mathematica vs ...
Hi,
This question seems to be old, however I am asking it from a different point
of view.
R introduces itself as a 'statistical' language and environment. There are
many discussions about comparing R to MATLAB or mathematica (or other
similar software). It seems to me that these other software have a broader
range of applications. For example, in Mathematica one can solve a partial
2009 Jan 18
1
Combinations
Hi All, some help on this would be appreciated;
Understood combinations(7,4) returns all the possible 4 part combinations
out of 7. Is is possible to substitute the ³7² for a list of stuff you would
like to see the mix of; c(³a²,...,²g²) say ?
Thanks
Glenn
[[alternative HTML version deleted]]
2009 Feb 09
2
subsets problem
Help with this much appreciated
I have a large dataframe that I would like to subset where the constraint
Test1 <- subset(df, date == uniques[[1]]), where uniques is a list of dates
that must be matched to create Test1.
I would like to perform an operation on Test1 that results in a single
column of data. So far so good.
How do loop through all values in the uniques list (say