[R] R script HELP!

Jonathan P Daily jdaily at usgs.gov
Fri Feb 18 15:04:01 CET 2011


It looks to me like when you assign ID_min and ID_max that you want them 
to be vectors. In R, this is accomplished by ?c.

Example:
ID_min <- c(976834501,  290018099.3145, 1000)

--------------------------------------
Jonathan P. Daily
Technician - USGS Leetown Science Center
11649 Leetown Road
Kearneysville WV, 25430
(304) 724-4480
"Is the room still a room when its empty? Does the room,
 the thing itself have purpose? Or do we, what's the word... imbue it."
     - Jubal Early, Firefly

r-help-bounces at r-project.org wrote on 02/18/2011 08:21:36 AM:

> [image removed] 
> 
> [R] R script HELP!
> 
> whizevans 
> 
> to:
> 
> r-help
> 
> 02/18/2011 08:49 AM
> 
> Sent by:
> 
> r-help-bounces at r-project.org
> 
> 
> The following is my R script which I am struggling with to assess ICESat
> data..perhaps it is the ID_min or ID_max that is wrong? I don't know, 
any
> help would be greatly appreciated :(
> 
> 
> # OPTIONS - CHANGE THESE VARIABLES IF NEEDED\par
> 
######################################################################\par
> \par
> icesatfile <- 
> 
> 'C:/Users/Whiz/My_Documents/Year3/GY3072/ICESat_GLAS/IDLreadGLASWF/
> out_wf_GLA01_09030918_r5947_031_L2E.dat'\par
> \par
> plotdir <- 
'C:/Users/Whiz/My_Documents/Year3/GY3072/ICESat_GLAS/PLOT'\par
> \par
> \par
> \par
> ID_min <- 976834501  290018099.3145 1000 #231741042 # specify range of
> waveforms to be plotted, -1 means all\par
> ID_max <- 976834506  290018101.2895 1000 ############@@@@@@@@@@@note 
only
> one ID used @@@@@@@@@@@@@@@\par
> \par
> \par
> \par
> noise <- 0.05 # values below NOISE will be disregarded in the waveform
> fitting\par
> sdthres <- 0.02 # threshold for a standard deviation of volt 
measurements
> indicating the presence of a signal\par
> \par
> fit_waveform_model <- TRUE # set to TRUE this activates the Gaussian
> waveform model fitting and plotting\par
> #fit_waveform_select <- c(976834501  290018099.3145 1000)  # gives the
> Unique ID for which the model fitting will 
> 
> be activated\par
> \par
> 
#####################################################################\par
> # END OF OPTIONS\par
> -- 
> View this message in context: http://r.789695.n4.nabble.com/R-
> script-HELP-tp3312644p3312644.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> R-help at r-project.org 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.



More information about the R-help mailing list