Re: [R] Sweave on mac os x

2007-07-19 Thread Thomas Adams
Marco,

Yes, absolutely sweave comes with the binary Mac OS X distribution; it 
works great for me.

Regards,
Tom

marco.R.help marco.R.help wrote:
> Dear all,
>
>  is Sweave working on MAC ?
> I installed R-2.5.1 but seems like Sweave is not coming with the
> distribution as it comes on linux.
> Do I need to install it separately ?
> In that case is there a .dmg for mac ?
>
> Thanks for the help!
>
> Regards
>
> Marco
>
>   [[alternative HTML version deleted]]
>
> __
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>   


-- 
Thomas E Adams
National Weather Service
Ohio River Forecast Center
1901 South State Route 134
Wilmington, OH 45177

EMAIL:  [EMAIL PROTECTED]

VOICE:  937-383-0528
FAX:937-383-0033

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Running an R script without running R

2007-05-21 Thread Thomas Adams
Alberto,

Below I have two scripts:

(1) cpc2fgroup
(2) R.cpc.6_10day.outlook.batch

Bash shell script (1) calls the R script (2). (1) also sets some 
environment variables for (2). I make no claims that this is good coding 
and I might write things a little differently now (rather than a few 
years ago), but it works… Also, there are some things going on with 
GRASS GIS that probably has no relevance to your needs, but I also read 
data from GRASS GIS and have to set some environment variables for it too,

I hope this helps and is not confusing.

Regards,
Tom


 (1) cpc2fgroup 

#!/usr/bin/ksh

###
# * cpc2fgroup *


###
# Set GRASS Environment Variables
###
echo "LOCATION_NAME: cpc" > $HOME/.grassrc6
echo "MAPSET: oper" >> $HOME/.grassrc6
echo "DIGITIZER: none" >> $HOME/.grassrc6
echo "GISDBASE: /grass/data" >> $HOME/.grassrc6
echo "GRASS_GUI: text" >> $HOME/.grassrc6

export GISBASE=/awips/grass
export GISDBASE=/grass/data
export GISRC=$HOME/.grassrc6
export PATH=$PATH:$GISBASE/bin:$PATH:$GISBASE/scripts


###
# Script to calculate CPC Prognostic 6-10 Day Precipitation & Temperature
# outlooks on a Forecast Group basis for the ESPADP CPC PreAdjustment file
###
#
# REMINDER: With subsequent Forecast Groups add to the Loop
#
###

today=$(date +%Y%m%d)

echo
echo "= Begin FTP of CPC grids ==="
echo

cd $GISDBASE
# Initialize the summary statistics files
cp /dev/null cpc.6_10.PAN.summary
cp /dev/null cpc.6_10.PBN.summary
cp /dev/null cpc.6_10.TAN.summary
cp /dev/null cpc.6_10.TBN.summary

###
# Get the CPC grids via ftp
ftp_cpc_data.bash

#if [ $? -eq 0 ]; then
# echo
# echo "EXIT 0 received from program ftp_cpc_data.bash"
# echo
# echo "= CPC grids are not current ="
# echo
# exit 0
#fi


# Convert CPC data to GRASS ascii grid import format
cpc2grass.pl grid_5km.ppan.08.Mon.asc
cpc2grass.pl grid_5km.ppbn.08.Mon.asc
cpc2grass.pl grid_5km.ptan.08.Mon.asc
cpc2grass.pl grid_5km.ptbn.08.Mon.asc

# Remove any mask that may be set
g.remove rast=MASK

# Import the CPC data into GRASS
r.in.ascii -f input=grid_5km.ppan.08.Mon.asc.grass 
output=grid.5km.ppan.$today
r.in.ascii -f input=grid_5km.ppbn.08.Mon.asc.grass output=grid.5km.ppbn
r.mapcalc grid.5km.ppbn.$today=-1*grid.5km.ppbn

r.in.ascii -f input=grid_5km.ptan.08.Mon.asc.grass 
output=grid.5km.ptan.$today
r.in.ascii -f input=grid_5km.ptbn.08.Mon.asc.grass output=grid.5km.ptbn
r.mapcalc grid.5km.ptbn.$today=-1*grid.5km.ptbn

echo
echo "= Begin processing for each Forecast Group ==="
echo


for basin_U in $( Is there any way to run an R script without running R?
>
> As an example, suppose I have a tcl/tk interface that asks
> for a number (in a GUI) and displays its factorial. Is there a
> way to invoke this script without invoking R?
>
> I'm using R 2.4.1 in GNU/Linux Fedora Core 4.
>
> Alberto Monteiro
>
> __
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>   


-- 
Thomas E Adams
National Weather Service
Ohio River Forecast Center
1901 South State Route 134
Wilmington, OH 45177

EMAIL:  [EMAIL PROTECTED]

VOICE:  937-383-0528
FAX:937-383-0033

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Re-sizing R graphics for Sweave

2007-05-16 Thread Thomas Adams
Marc,

That did it! Thank you so much for your help…

Regards,
Tom


Marc Schwartz wrote:
> On Wed, 2007-05-16 at 16:34 -0400, Thomas Adams wrote:
>   
>> I am generating a single graphic containing about 31 Boxplots; the issue 
>> I am having is that not all the labels (3 characters each) are shown. 
>> Interactively, within a R session, I can simply re-size the graphics 
>> window and all the labels appear. But, what can I do non-interactively 
>> to have all the labels displayed when using Sweave? Can the labels be 
>> rotated 90-degrees; would this help? I guess one possibility would be to 
>> number the boxplots, but this may not help either. My thought would be 
>> to force the graphic to be a certain width, but I can't find how to do this.
>>
>> I have searched and can not find a way to do this automatically — I 
>> could not find anything in the "R Graphics" book by Paul Murrell that 
>> pointed me in the right direction either.
>>
>> Thank you,
>> Tom
>> 
>
> Presuming that you are using a 'figure' chunk in your .Rnw file, you can
> use:
>
>   <>=
>
>  Your R code here...
>
>   @
>
>
> which will define the dimensions of your plot output file as 8 x 6.5.
> Adjust these as you require.
>
> See ?RweaveLatex
>
> You may also need to adjust the size of the titles, etc. in the plots,
> which you can do with the various 'cex' family of parameters. See ?par
> for more information there.
>
> HTH,
>
> Marc Schwartz
>
>
>   


-- 
Thomas E Adams
National Weather Service
Ohio River Forecast Center
1901 South State Route 134
Wilmington, OH 45177

EMAIL:  [EMAIL PROTECTED]

VOICE:  937-383-0528
FAX:937-383-0033

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Re-sizing R graphics for Sweave

2007-05-16 Thread Thomas Adams
I am generating a single graphic containing about 31 Boxplots; the issue 
I am having is that not all the labels (3 characters each) are shown. 
Interactively, within a R session, I can simply re-size the graphics 
window and all the labels appear. But, what can I do non-interactively 
to have all the labels displayed when using Sweave? Can the labels be 
rotated 90-degrees; would this help? I guess one possibility would be to 
number the boxplots, but this may not help either. My thought would be 
to force the graphic to be a certain width, but I can't find how to do this.

I have searched and can not find a way to do this automatically — I 
could not find anything in the "R Graphics" book by Paul Murrell that 
pointed me in the right direction either.

Thank you,
Tom

-- 
Thomas E Adams
National Weather Service
Ohio River Forecast Center
1901 South State Route 134
Wilmington, OH 45177

EMAIL:  [EMAIL PROTECTED]

VOICE:  937-383-0528
FAX:937-383-0033

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Problem with Sweave

2007-05-15 Thread Thomas Adams
Duncan,

Thank you for your help — that certainly did the trick. With Sweave 
being new to me, I somehow missed the obvious…

Regards,
Tom

Duncan Murdoch wrote:
> On 15/05/2007 9:22 PM, Thomas Adams wrote:
>> I am using R 2.5 on a Linux Redhat platform. I can successfully run 
>> some example *.Rnw files through Sweave and generate pdf files. When 
>> I try my own example file, "test.Rnw":
>>
>> \documentclass[a4paper]{article}
>> \title{Test Sweave Example}
>> \author{Thomas Adams}
>> \begin{document}
>> \maketitle
>> In this example we embed parts of the examples from the
>> \texttt{boxplot} and \texttt{lattice} figures into a \LaTeX{} document
>> <<>>=
>> library(verification)
>> library(lattice)
>> dat<-read.table("verification_summary_20051024_table.txt",sep="\t",header=TRUE)
>>  
>>
>> \begin{center}
>> <>=
>> boxplot(dat$MAE ~ dat$BASINID)
>> abline(h=1)
>> abline(h=0.5,col="red")
>> @
>> \end{center}
>> \end{document}
>>
>>
>> I get the following error:
>>
>> xt4-tir:adams> echo 'Sweave("test.Rnw")' | R --vanilla --quiet
>> > Sweave("test.Rnw")
>> Writing to file test.tex
>> Processing code chunks ...
>> 1 : echo term verbatim
>>
>> Error: chunk 1
>> Error in parse(file, n, text, prompt, srcfile, encoding) :
>> syntax error, unexpected $undefined in:
>> "
>> "
>> Execution halted
>>
>> I really do not know where to begin to decipher the error messages. 
>> Any suggestions?
>
> You didn't end the first code chunk (no @ at the end). This isn't 
> obvious from the error message, but it is obvious if you run Stangle, 
> and look at the resulting R file, because you know the error is in 
> chunk 1, and that last line of it doesn't look much like R code:
>
> ###
> ### chunk number 1:
> ###
> library(verification)
> library(lattice)
> dat<-read.table("verification_summary_20051024_table.txt",sep="\t",header=TRUE)
>  
>
> \begin{center}
>
>
> ###
> ### chunk number 2:
> ###
> boxplot(dat$MAE ~ dat$BASINID)
> abline(h=1)
> abline(h=0.5,col="red")
>
> Duncan Murdoch
>


-- 
Thomas E Adams
National Weather Service
Ohio River Forecast Center
1901 South State Route 134
Wilmington, OH 45177

EMAIL:  [EMAIL PROTECTED]

VOICE:  937-383-0528
FAX:937-383-0033

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Problem with Sweave

2007-05-15 Thread Thomas Adams
I am using R 2.5 on a Linux Redhat platform. I can successfully run some 
example *.Rnw files through Sweave and generate pdf files. When I try my 
own example file, "test.Rnw":

\documentclass[a4paper]{article}
\title{Test Sweave Example}
\author{Thomas Adams}
\begin{document}
\maketitle
In this example we embed parts of the examples from the
\texttt{boxplot} and \texttt{lattice} figures into a \LaTeX{} document
<<>>=
library(verification)
library(lattice)
dat<-read.table("verification_summary_20051024_table.txt",sep="\t",header=TRUE)
\begin{center}
<>=
boxplot(dat$MAE ~ dat$BASINID)
abline(h=1)
abline(h=0.5,col="red")
@
\end{center}
\end{document}


I get the following error:

xt4-tir:adams> echo 'Sweave("test.Rnw")' | R --vanilla --quiet
 > Sweave("test.Rnw")
Writing to file test.tex
Processing code chunks ...
 1 : echo term verbatim

Error:  chunk 1
Error in parse(file, n, text, prompt, srcfile, encoding) :
syntax error, unexpected $undefined in:
"
"
Execution halted

I really do not know where to begin to decipher the error messages. Any 
suggestions?

Regards,
Tom

-- 
Thomas E Adams
National Weather Service
Ohio River Forecast Center
1901 South State Route 134
Wilmington, OH 45177

EMAIL:  [EMAIL PROTECTED]

VOICE:  937-383-0528
FAX:937-383-0033

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] listing R packages in our system

2007-05-04 Thread Thomas Adams
One can also use:

library()




Henrique Dallazuanna wrote:
> See:
>
> packs <- .packages(all=T)
> length(packs)
>
>   
> 
>
> __
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>   


-- 
Thomas E Adams
National Weather Service
Ohio River Forecast Center
1901 South State Route 134
Wilmington, OH 45177

EMAIL:  [EMAIL PROTECTED]

VOICE:  937-383-0528
FAX:937-383-0033

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Problem installing rgdal on Mac OS X

2007-04-04 Thread Thomas Adams
Please forgive me for posting this here if it is not appropriate (where 
should this question be posed?)…

I am attempting to install rgdal (from source, since there is no binary) 
on Mac OS X 10.4.9 on a PowerPC G3 Macintosh. I have R version 2.4.1 
(2006-12-18) installed. Following the install directions suggested at:

http://www.sal.uiuc.edu/tools/tools-sum/rgeo/rgeo-detail/map-packages-on-cran

The Mac OS X Frameworks packages were obtained from: 
http://www.kyngchaos.com/software/unixport

Using R CMD INSTALL in a term window I have:

R CMD INSTALL rgdal_0.5-6.tar.gz 
--configure-args='--with-gdal-config=/Library/Frameworks/GDAL.framework/Versions/1.4/Programs/gdal-config
 
--with-proj-include=/Library/Frameworks/PROJ.framework/Versions/4.5/Headers 
--with-proj-lib=/Library/Frameworks/PROJ.framework/Versions/4.5/unix/lib'

which produces the following output:

* Installing *source* package 'rgdal' ...
gdal-config: 
/Library/Frameworks/GDAL.framework/Versions/1.4/Programs/gdal-config
checking for gcc... gcc-4.0 -arch ppc -std=gnu99
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc-4.0 -arch ppc -std=gnu99 accepts -g... yes
checking for gcc-4.0 -arch ppc -std=gnu99 option to accept ANSI C... 
none needed
checking how to run the C preprocessor... gcc-4.0 -arch ppc -std=gnu99 -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking proj_api.h usability... yes
checking proj_api.h presence... yes
checking for proj_api.h... yes
checking for pj_init_plus in -lproj... yes
Package CPP flags: 
-I/Library/Frameworks/PROJ.framework/Versions/4.5/Headers 
-I/Library/Frameworks/GDAL.framework/unix/include
Package LIBS: -L/Library/Frameworks/PROJ.framework/Versions/4.5/unix/lib 
-L/Library/Frameworks/GDAL.framework/unix/lib -lgdal
configure: creating ./config.status
config.status: creating src/Makevars
** libs
** arch - ppc
g++-4.0 -arch ppc -I/Library/Frameworks/R.framework/Resources/include 
-I/Library/Frameworks/R.framework/Resources/include/ppc 
-I/Library/Frameworks/PROJ.framework/Versions/4.5/Headers 
-I/Library/Frameworks/GDAL.framework/unix/include -I/usr/local/include 
-fPIC -g -O2 -c OGR_write.cpp -o OGR_write.o
g++-4.0 -arch ppc -I/Library/Frameworks/R.framework/Resources/include 
-I/Library/Frameworks/R.framework/Resources/include/ppc 
-I/Library/Frameworks/PROJ.framework/Versions/4.5/Headers 
-I/Library/Frameworks/GDAL.framework/unix/include -I/usr/local/include 
-fPIC -g -O2 -c gdal-bindings.cpp -o gdal-bindings.o
g++-4.0 -arch ppc -I/Library/Frameworks/R.framework/Resources/include 
-I/Library/Frameworks/R.framework/Resources/include/ppc 
-I/Library/Frameworks/PROJ.framework/Versions/4.5/Headers 
-I/Library/Frameworks/GDAL.framework/unix/include -I/usr/local/include 
-fPIC -g -O2 -c ogr_geom.cpp -o ogr_geom.o
g++-4.0 -arch ppc -I/Library/Frameworks/R.framework/Resources/include 
-I/Library/Frameworks/R.framework/Resources/include/ppc 
-I/Library/Frameworks/PROJ.framework/Versions/4.5/Headers 
-I/Library/Frameworks/GDAL.framework/unix/include -I/usr/local/include 
-fPIC -g -O2 -c ogr_proj.cpp -o ogr_proj.o
g++-4.0 -arch ppc -I/Library/Frameworks/R.framework/Resources/include 
-I/Library/Frameworks/R.framework/Resources/include/ppc 
-I/Library/Frameworks/PROJ.framework/Versions/4.5/Headers 
-I/Library/Frameworks/GDAL.framework/unix/include -I/usr/local/include 
-fPIC -g -O2 -c ogrdrivers.cpp -o ogrdrivers.o
g++-4.0 -arch ppc -I/Library/Frameworks/R.framework/Resources/include 
-I/Library/Frameworks/R.framework/Resources/include/ppc 
-I/Library/Frameworks/PROJ.framework/Versions/4.5/Headers 
-I/Library/Frameworks/GDAL.framework/unix/include -I/usr/local/include 
-fPIC -g -O2 -c ogrsource.cpp -o ogrsource.o
g++-4.0 -arch ppc -I/Library/Frameworks/R.framework/Resources/include 
-I/Library/Frameworks/R.framework/Resources/include/ppc 
-I/Library/Frameworks/PROJ.framework/Versions/4.5/Headers 
-I/Library/Frameworks/GDAL.framework/unix/include -I/usr/local/include 
-fPIC -g -O2 -c projectit.cpp -o projectit.o
g++-4.0 -arch ppc -dynamiclib -Wl,-macosx_version_min -Wl,10.3 
-undefined dynamic_lookup -single_module -multiply_defined suppress 
-L/usr/local/lib -o rgdal.so OGR_write.o gdal-bindings.o ogr_geom.o 
ogr_proj.o ogrdrivers.o ogrsource.o projectit.o 
-L/Library/Frameworks/PROJ.framework/Versions/4.5/unix/lib 
-L/Library/Frameworks/GDAL.framework/unix/lib -lgdal -lproj 
-L/Library/Frameworks/R.framework/Resources/lib/ppc -lR -dylib_file 
libRblas.dylib:/Library/Framewo

Re: [R] Solving PDEs

2007-03-13 Thread Thomas Adams
Amit,

A better tool for this purpose may be octave, which can be found at 
http://www.gnu.org/software/octave/

Regards,
Tom

Amit Soni wrote:
> Hi,
>
> Is there any method in R by which I can solve PDEs?
>
> Thank you,
> Amit
>
>   [[alternative HTML version deleted]]
>
> __
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>   


-- 
Thomas E Adams
National Weather Service
Ohio River Forecast Center
1901 South State Route 134
Wilmington, OH 45177

EMAIL:  [EMAIL PROTECTED]

VOICE:  937-383-0528
FAX:937-383-0033

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] SAS, SPSS Product Comparison Table

2007-02-16 Thread Thomas Adams
Charilaos,

I noticed within your table, under GIS/Mapping for 'R' you only listed 
'maps'. You should probably include GRASS GIS, which can be interfaced 
to R using the spgrass6 package.

Regards,
Tom


Charilaos Skiadas wrote:
> On Feb 10, 2007, at 4:26 PM, Muenchen, Robert A (Bob) wrote:
>   
>>  "Surely R can't do for free what [fill in a SAS or SPSS
>> product here] does?" To try to address those, I've compiled a table  
>> that
>> is organized by the product categories SAS and SPSS offer. Keep in  
>> mind
>> that I still know far more about SAS and SPSS than I do about R, so I
>> could really use some help with this. The table is below in tabbed  
>> form.
>> I would appreciate it if the many R gurus out there would look it over
>> and send suggestions. I'll add it as an appendix when it's done (well,
>> as done as a moving target like this ever is!)
>>
>> 
> Great idea, this should come in handy! Here is a more readable  
> version of Bob's table (don't know if I can post attachments like  
> that to the list, so I figured I'll put it up like this):
>
> http://skiadas.dcostanet.net/uploads/StatsComparisonTable.pdf
>
>   
>> Thanks,
>> Bob
>> 
>
> Haris
>
> __
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>   


-- 
Thomas E Adams
National Weather Service
Ohio River Forecast Center
1901 South State Route 134
Wilmington, OH 45177

EMAIL:  [EMAIL PROTECTED]

VOICE:  937-383-0528
FAX:937-383-0033

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Numerical Recipes in R

2007-02-09 Thread Thomas Adams
Lorenzo,

You may want to look at Octave, which is a MatLab gnu clone:

http://www.gnu.org/software/octave/

Regards,
Tom


Lorenzo Isella wrote:
> Dear All,
> So far I have mainly used R for data analysis and simple numerics
> (integration of functions, splines etc...).
> However, I have recently been astonished at finding out that many
> things I thought were only achievable with Fortran or C can be done
> e.g. entirely using MatLab.
> When I try asking around if the same could be achieved by R,
> inevitably the answer is that either people do not know R or there is
> so much numerical MatLab code (for instance for solving partial
> differential equations), that there is no point in switching to R.
> Does anyone know if this is really the situation? I am wondering if
> there is anywhere a kind of freely available collection of reliable
> numerical software written in R which is not only geared towards
> statistics and data analysis.
> Kind Regards
>
> Lorenzo
>
> __
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>   


-- 
Thomas E Adams
National Weather Service
Ohio River Forecast Center
1901 South State Route 134
Wilmington, OH 45177

EMAIL:  [EMAIL PROTECTED]

VOICE:  937-383-0528
FAX:937-383-0033

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] For MacBook, best way to do R?

2006-11-14 Thread Thomas Adams
Mitchell,

I have been using R on a variety of Macs for a couple of years with no 
problems. The R aqua interface is very good and I see no compelling 
reason to not use the precompiled binaries.

Regards,
Tom

Mitchell Maltenfort wrote:
> I'm getting a MacBook and I'd like to stick with OS X rather than
> convert it to Linux just yet.
>
> However, my main concern is having decent performance.
>
> What's my best option:
>
> *use the existing binary for R?
>
> *compile R fresh under OS X?
>
> * install Linux and run R under that?
>
> Does anyone have any recent experience they can share?  Thanks!
>
>   


-- 
Thomas E Adams
National Weather Service
Ohio River Forecast Center
1901 South State Route 134
Wilmington, OH 45177

EMAIL:  [EMAIL PROTECTED]

VOICE:  937-383-0528
FAX:937-383-0033

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Normal score transform of spatial data

2006-07-28 Thread Thomas Adams
List:

I have 2 related questions:

(1) first I have x-y-z data, where x & y are the geographic locations of 
point values, z. I need to perform a normal score transform on the 
z-values and maintain their geographic location. So, how do I go from 
columns x-y-z to x-y-z-t (or x-y-t), where the t-values are the normal 
score transforms of the z-values? Can I use qnorm(ppoints(data)) to do 
this; how?

(2) I also need to do a reverse transform of a matrix of normal score 
values (v) to my original data value units; I have seen that I can use 
something like approx(t, x, v)$y. Again, the matrix represents a spatial 
grid. So, how do I maintain the same spatial ordering resulting from the 
reverse transform?

Thank you for your help.

Regards,
Tom


-- 
Thomas E Adams
National Weather Service
Ohio River Forecast Center
1901 South State Route 134
Wilmington, OH 45177

EMAIL:  [EMAIL PROTECTED]

VOICE:  937-383-0528
FAX:937-383-0033

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] use of R in big companies (references) & R-support esp in Germany

2006-06-07 Thread Thomas Adams
Spencer,

I agree that there exist biases within large organizations toward 
commercial software packages, but I humbly disagree that this can be 
reduced to geopolitical differences. I work for a US Government Agency 
and while there is some truth to the feeling "[they] refuse to believe 
that anything free can be any good", it has little-to-nothing to do with 
Capitalism vs whatever… I think the feeling has to do more with the 
*perceived* issues related to support and what is "tried & true" — it's 
a very conservative approach, one that I face on nearly a daily basis. 
Apart from my use of R, I am also a heavy user of the open source 
Geographic Information System (GIS) called GRASS, in which the 
*dominant* GIS company internationally is ESRI and their very expensive 
software called ArcGIS. There is very little that ArcGIS can do that 
GRASS can not do. What is especially troublesome is that ArcGIS is 
restricted to the MS-Windows platform, whereas GRASS runs on Linux, 
MacOS X, UNIX, and MS-Windows with Cygwin.

Thank you for your references as I hope to use them.

Regards,
Tom



Spencer Graves wrote:
> The best rebuttal I've heard recently to arguments like that is Linux 
> (www.linux.org):  It's distributed under the same general public license 
> (GNU) license as R.
>
> A perspective that I don't recall having seen on this list is that 
> the cost of producing and distributing software has become too cheap to 
> meter, unless you want to charge for it.  Open source projects like 
> Linux and R (and Mozilla, Subversion, and others) were much more 
> difficult and less common before the Internet, just because the costs of 
> coordinating development plus producing and distributing the product 
> made such efforts much more difficult.  For a discussion of these 
> phenomena by two Economics professors at UC-Berkeley, see Shapiro and 
> Varian (1998) Information Rules (Harvard Business School Pr.).  A newer, 
> similar title by these same authors is "The Economics of Information 
> Technology";  I haven't read this newer book, but it looks like it could 
> be relevant also.
>
> I mention this, because I suspect some of the opposition to open 
> source, "free" software is ideology:  Rabid capitalists refuse to 
> believe that anything free can be any good.  (We could talk about air 
> and water, but that might be a digression.)  Books like this backed by 
> solid research might help counter such opposition.
>
> Hope this helps.
> Spencer Graves
>
> Armin Roehrl wrote:
>   
>> Dear R users,
>>
>> sorry for this general email and I am sure it has been asked
>> way too many times.
>>
>> IT departements in big companies only want to support the big
>> standards. Whatever big standards means apart from being expensive.
>>
>> We are in the process of trying to get a risk management project
>> for a big conservative company in Germany. As part of the project
>> we would use R to run simulations, but the company is afraid of R.
>>
>> 1) If anybody has any reference projects using R I can quote, please
>> drop me an email. Best would be companies like Siemens, Allianz,
>> Munich Re, Daimler Chrysler, Credit Suisse etc.
>>
>> 2) Are there any software companies around with R know-how and are
>> interested in paid R-projects? The bigger the company, the better
>> as this client seems to be scared of software companies with less
>> than 200 developers.
>>
>>
>> Thanks,
>>   -Armin
>>
>> 
>
> __
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>   


-- 
Thomas E Adams
National Weather Service
Ohio River Forecast Center
1901 South State Route 134
Wilmington, OH 45177

EMAIL:  [EMAIL PROTECTED]

VOICE:  937-383-0528
FAX:937-383-0033

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] multiple comparisons of time series data

2006-05-29 Thread Thomas Adams
Kyle,

You might try the Wilcoxon Rank Sum test (and there is also the paired 
rank sum test) that may be useful. Both are found in R. There is an 
application of the test in the textbook by Loucks, D.P., Stedinger J.R., 
and Haith, D., 1981. "Water Resources Systems Planning and Analysis", 
Prentice-Hall, Eaglewood Cliffs, New Jersey. I hope this helps…

Go HOKIES!

Tom


Kyle Hall wrote:
> I am interested in a statistical comparison of multiple (5) time series' 
> generated from modeling software (Hydrologic Simulation Program Fortran). The 
> model output simulates daily bacteria concentration in a stream. The multiple 
> time series' are a result of varying our representation of the stream within 
> the model.
>
> Our main question is: Do the different methods used to represent a stream 
> produce different results at a statistically significant level?
>
> We want to compare each otput time series to determine if there is a 
> difference before looking into the cause within the model.  In a previous 
> study, the Kolmogorov-Smirnov k-sample test was used to compare multiple time 
> series'.
>
> I am unsure about the strength of the Kolmogorov-Smirnov test and I have set 
> out to determine if there are any other tests to compare multiple time 
> series'.
>
> I know htat R has the ks.test but I am unsure how this test handles multiple 
> comparisons.  Is there something similar to a pairwise.t.test with a 
> bonferroni corection, only with time series data?
>
> Does R currently (v 2.3.0) have a comparison test that takes into account the 
> strong serial correlation of time series data?
>
>
> Kyle Hall
>
> Graduate Research Assistant
> Biological Systems Engineering
> Virginia Tech
>
> __
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>   


-- 
Thomas E Adams
National Weather Service
Ohio River Forecast Center
1901 South State Route 134
Wilmington, OH 45177

EMAIL:  [EMAIL PROTECTED]

VOICE:  937-383-0528
FAX:937-383-0033

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] Problem installing rgdal from source -- Makevars issue

2006-05-22 Thread Thomas Adams
List:

I have installed R, contributed packages, and supporting libraries in a 
non-standard location (but under the same sub-directory tree). This was 
necessary for systems reasons beyond my control. When I attempt to use 
Makevars (as shown below) to install rgdal from source, I get the 
following error:

R CMD INSTALL rgdal_0.4-3.tar.gz
.
.
.
checking proj_api.h usability... no
checking proj_api.h presence... no
checking for proj_api.h... no
libproj.a and proj_api.h not found in standard search locations,
edit src/Makevars manually, adding -I
to PKG_CPPFLAGS = , and -L to PKG_LIBS =
ERROR: configuration failed for package 'rgdal'
** Removing '/awips/rep/lx/local_apps/R/lib/R/library/rgdal'
** Restoring previous '/awips/rep/lx/local_apps/R/lib/R/library/rgdal'

I get this error regardless of where I put the Makevars file: 
$HOME/.R/Makevars, in the local build directory, or in the rgdal source 
directory src/Makevars runing ./configure

My Makevars contains this:

PKG_CPPFLAGS = -I/awips/rep/lx/local_apps/proj4/include
PKG_LIBS = -L/awips/rep/lx/local_apps/proj4/lib

I have also tried using the file name: Makevars and 
Makevars-i686-pc-linux-gnu

I'm sure I am doing *something* wrong; any suggestions?

Regards,
Tom



-- 
Thomas E Adams
National Weather Service
Ohio River Forecast Center
1901 South State Route 134
Wilmington, OH 45177

EMAIL:  [EMAIL PROTECTED]

VOICE:  937-383-0528
FAX:937-383-0033

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html