Displaying 8 results from an estimated 8 matches for "mysub".
Did you mean:
mysum
2004 Dec 02
3
R and Fortran in Windows
....edu/~stram
These notes were written by J.R.M. Hosking.
Using Fortran routines from R with CVF
1. Take a working Fortran subroutine, and put its name in an
ATTRIBUTES DLLEXPORT directive to ensure that the routine name
is exported from the DLL that will be built. Example:
SUBROUTINE MYSUB(X,N,XMEAN)
CDEC$ ATTRIBUTES DLLEXPORT :: MYSUB
IMPLICIT DOUBLE PRECISION (A-H,O-Z)
DOUBLE PRECISION X(N)
XMEAN=0D0
DO 10 J=1,N
XMEAN=XMEAN+X(J)
10 CONTINUE
XMEAN=XMEAN/N
RETURN
END
2. Compile and link the routine using the CVF options /assume:underscore
an...
2009 Jul 09
2
correct way to subset a vector
...example data
dat <- data.frame(matrix(rnorm(15),ncol=5))
colnames(dat) <- c("ab","cd","ef","gh","ij")
If I want to get a subset of the data for the middle 3 columns, and I
know the names of the start column and the end column, I can do this:
mysub <- subset(dat,select=c(cd:gh))
If I wanted to do this just on the column names, without subsetting
the data, how could I do this?
mynames <- colnames(dat);
#mynames
#[1] "ab" "cd" "ef" "gh" "ij"
Is there an easy way to create the vector c(...
2011 Mar 15
2
Calculate monthly means
I am trying to calculate monthly means by year of phosphates and nitrates from a multi year data set. Can anybody help me out with the most effective way to do this?
My data looks like this:
Collection_Date Test.Name Value
2000-01-24 17:00:00 Phosphate 0.108
2000-01-24 17:00:00 Nitrate 0.037
2001-11-12
2011 Jan 05
1
Heat map in R
Hello,
I am trying to make a heatmap in R and am having some trouble. I am very new
to the world of R, but have been told that what I am trying to do should be
possible. I want to make a heat map that looks like a gene expression
heatmap (see http://en.wikipedia.org/wiki/Heat_map).
I have 43 samples and 900 genes (yes I know this will be a huge map). I also
have copy numbers associated with
2008 Jan 23
3
help with replacing all comma in a data frame with a dot
Dear list,
I have imported a spss data file in R, where a comma is used to separate the decimal numbers, e.g. 3,567 instead of 3.567 as in R. How can I replace the comma with a dot for all values in the data frame
>kk
a b c d e f
1 ,0925199910320613 82523 8 ,855 ,803 ,69
2 ,278314161923372 91657 26 1,285 1,032 ,823
3
2008 Nov 06
2
Fwd: SWIG with R and C++ STL
Hi, all
I didn't get any response from swig for my question.
see if I can get some help here
Thanks
---------- Forwarded message ----------
From: charlie <charlie.xia.fdu@gmail.com>
Date: Tue, Nov 4, 2008 at 1:55 PM
Subject: SWIG with R and C++ STL
To: swig-user@lists.sourceforge.net
Hi all,
I am new to SWIG. I encountered some problem when I try to SWIG to R some
C++ modules.
Here
2013 Oct 17
4
Subseting a data.frame
Dear Forum,
I have a data frame as
mydat = data.frame(basel_asset_class = c(2, 8, 8 ,8), defa_frequency = c(0.15, 0.07, 0.03, 0.001))
> mydat
basel_asset_class defa_frequency
1 2 0.150
2 8 0.070
3 8 0.030
4 8 0.001
I need to get the subset of this data.frame where no of records for the
2013 Oct 17
4
Subseting a data.frame
Dear Forum,
I have a data frame as
mydat = data.frame(basel_asset_class = c(2, 8, 8 ,8), defa_frequency = c(0.15, 0.07, 0.03, 0.001))
> mydat
basel_asset_class defa_frequency
1 2 0.150
2 8 0.070
3 8 0.030
4 8 0.001
I need to get the subset of this data.frame where no of records for the