Displaying 7 results from an estimated 7 matches for "greggallen".
2009 Jan 04
3
Newbie question
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 experienced.
Thanks,
Gregg Allen
2012 Nov 05
2
Replace array with percentile values
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, 77, -1
would become: mesmentsCopy$V1: 50, 100, 0
The actual array has many more
2009 Jan 08
3
Creating file names.
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 convenient to
have something like this:
LMSMOD_Jan_08_09_1404
Does anyone know how I can do
2009 Apr 25
2
Extracting an object name?
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" object.
So what they created was:
"arbitrary variable name"
2009 Feb 16
1
How do I Edit Source Code Files On The Mac?
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/41a7" 13L, 161C written
Sure I can "cp" it from that
2009 Apr 15
1
Looping through file names and loading...
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_number_etc_etc
Another_file_name_with_similar_info_as_above
And_another
And_another_one
2009 Jan 19
1
sort or order problem.
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 models start with the letters
ABN
for( i in 1:length(files)) # loop through the