Displaying 20 results from an estimated 9000 matches similar to: "Newbie question"
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 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
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
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
2007 Mar 05
3
Rbind with data frames -- column names question
As part of my work, I am trying to append matrices onto data frames.
Naively I assumed that when rbinding a data.frame and matrix, the matrix
would be coerced and appended, keeping the names from the data frame.
Clearly, I am not fully understanding the process by which rbind works.
Example code:
> A<-data.frame(1,1,1); names(A)=letters[1:3] ; B<-matrix(0,2,3)
> rbind(A,B)
2006 Apr 14
1
rake test errors
I have Rails 1.1.2, ruby 1.8.4 and gentoo linux running kernel 2.6.15.
Here are the errors:
gregg@gregg2 ~/user/DMS $ rake test
(in /home/gregg/user/DMS)
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
ordered_options.rb:2: warning: method redefined; discarding old []=
/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/
ordered_options.rb:11: warning: method
2002 Aug 26
3
Question about memdisk
Peter,
I am trying to get memdisk to work with grub and have run into a
problem. Grub loads memdisk into the 0x9000 segment and then starts it
at location 0x90200. I run into problems in the first printf statement.
It turns out that printf uses a switch statement that compiles into a
jump table. When I reach this jump table, I believe the code is jumping
into hyperspace due to the jump table
2006 May 24
2
OSX Rails Session Issues
Hey friends,
I need a little assistance getting one of my applications running on
OSX.
I am able to install everything, and get my application running, but
when I try to store an object in the session in one of my apps, the
session object doesn''t get stored.
I tried running webrick, and I tried running under lighttpd.
I tried running a regular session store, and a mysql
2006 Jun 27
3
Decoding Unicode URLs Properly
Please help,
I have an application I switched over to UTF-8, but I am unable to
decode URLs with unicode characters in them properly. For instance, if
I have "item=Pur%E9ed" as a parameter in my url, when it''s decoded by
rails, it returns "Pur?ed" and not "Pur?ed".
Is there an easy way to fix my controller to accept these characters
properly?
2024 Dec 12
1
Cores hang when calling mcapply
Hi Thomas,
Glad to hear the suggestion helped, and that switching to a `data.table` approach reduced the processing time and memory overhead?15 minutes for one of the smaller datasets is certainly better! Sounds like the adjustments you devised, especially keeping the multicore approach for `make_clean_names()` and ensuring that `ID_Key` values remain intact, were the missing components you
2024 Dec 12
1
Cores hang when calling mcapply
Hi Gregg.
Just wanted to follow up on the solution you proposed.
I had to make some adjustments to get exactly what I wanted, but it works, and takes about 15 minutes on our server configuration:
temp <-
??????open_dataset(
????????????sources = input_files,
????????????format = 'csv',
????????????unify_schema = TRUE,
????????????col_types = schema(
????????????"ID_Key"
2001 Jan 11
2
nls error handling
I'm written a function that uses nls in a loop to fit a model to resampled data. Occasionally a sample is drawn such that the algorithm (apparently) can't converge and
step factor reduced below minimum
is printed to the screen. I tried a few different settings for the minFactor parameter in nls.control with no different result. When this happens, I would like my function to put NAs
2005 Nov 18
6
expected system load from DTrace scripts/probes
Does anyone out there have any thoughts on the type of load common
DTrace scripts would cause on a system if run 24x7? I know "common
DTrace scripts" and their underlining probe calls a vague statement. So
for the lack of a common and establish set of scripts in the OS, I''ll
use the most popular right for my question...the DTraceToolkit from
Brendan Gregg. Which by the
2024 Dec 11
1
Cores hang when calling mcapply
How is the server configured to handle memory distribution for individual users. I see it has over 700GB of total system memory, but how much can be assigned it each individual user?
AAgain - just curious, and wondering how much memory was assigned to your instance when you were running R.
regards,
Gregg
On Wednesday, December 11th, 2024 at 9:49 AM, Deramus, Thomas Patrick <tderamus at
2006 Nov 07
2
echo residue buffer size
Hi,
What is the required size of the echo residue buffer in
speex_echo_cancel function?
The mdf.c source would suggest that it's frame_size + 1, while
preprocessor.c source claims it's frame_size.
Bug? Or am I missing something? I am using 1.2beta1.
Thanks,
Gregg
2007 Feb 19
2
Acts_As_Ferret Tutorial
Hey guys,
I wanted to share with you guys a detailed tutorial I just
finished this weekend for using Acts_As_Ferret.
http://www.railsenvy.com/2007/2/19/acts-as-ferret-tutorial
I started using Ferret and Acts_As_Ferret a few weeks ago, and I
learned so much that I wanted to give back to the community by writing
up a helpful tutorial that covers all the key topics in one
2006 Sep 29
5
Request URI Length Override
Please help,
Does anyone know how to override the Mongrel request URI limits
built in? I know it was set at a 512 byte limit, but my application
will not work with this in place.
Why do I need a larger limit? I''ve written a rails application
that uses a bookmarklet to send large amounts of data from site to
site. The only way to do this is (and keep it cross browser
2024 Dec 11
1
Cores hang when calling mcapply
It's Redhat Enterprise Linux 9
Specifically:
OS Information:
NAME="Red Hat Enterprise Linux"
VERSION="9.3 (Plow)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="9.3"
PLATFORM_ID="platform:el9"
PRETTY_NAME="Red Hat Enterprise Linux 9.3 (Plow)"
ANSI_COLOR="0;31"
LOGO="fedora-logo-icon"