[R] Replace array with percentile values

2012-11-04 Thread greggallen
Hi: I have an array of measurements, that I've been doing linear regression model and AI models on. Because there are many errors and the values are "ill-formed" I would like to copy the array, but replace each value with the PERCENTILE of that value, in the original array. i.e. mesments$V1: 9

[R] Extracting an object name?

2009-04-24 Thread greggallen
Dear Sir or Madam: This is an extension to a earlier post, about looping through several thousand files, and testing student's models against a different data-set, called rclnow, for "recall now". The problem is, that the instructor never specified to the students, what they should name their "lm

[R] Looping through file names and loading...

2009-04-15 Thread greggallen
Dear R-Community: I am assisting a community college instructor in an introductory statistics class. He has asked me to do this: Read in a file, of filenames, line by line: Student_models.txt : (contains 1500+ filenames) Experiment_name_student_name_date_time_Model_numb

[R] How do I Edit Source Code Files On The Mac?

2009-02-15 Thread greggallen
Hello! I'm using Mac OS X 10.4.11 on a G4. I use the "R" command, straight from a terminal, because the "GUI" is slower, and I've never liked GUIs anyway. I tried to set up my environment to use the vi editor, but it always tries to save it in wierd things like this: "/private/tmp/RtmpWIhhuo/4

[R] sort or order problem.

2009-01-18 Thread GreggAllen
Thanks to everyone who helped me when I was totally clueless. Now I'm only partially clueless, and in writing functions, which is major progress. This is a function that is a major improvement over which I was using MS Excel for: function() { files <- list.files(pattern="ABN*") # All the mod

[R] Creating file names.

2009-01-08 Thread greggallen
I have a function that is called from a "sourced" script, whenever certain conditions are met. I have this inside it: if(P > 0.9)save( file = today() , myLMSmodel ); This gives me files that look like this: Thu Jan 8 14:04:43 2009 That works fine on my Mac, but it would be much more convenien

[R] Newbie question

2009-01-03 Thread greggallen
Hi: I'm loading in students test scores with: > abntest <- read.table("scores.txt") if I type: >abntest I get ALL the values. I want to be able to filter it by various things such as: if( abntesr > 90) Print abntest; and other logical operators. I'm sure this is simple for someone experie