Displaying 20 results from an estimated 10000 matches similar to: "Count Code"
2009 Apr 24
2
Array
Hi there,
Just wondering if anyone has any tips for using arrays?
I am trying to convert the following SAS code to R:
data A2;
set A1;
by subject_id;
retain BX1-BX10 i;
array b(1:10) BX1-BX10 ;
if first.subject_id then do ;
do j=1 to 10;
b(j) = .;
end;
i=1;
end;
b(i) = BX;
i = i+1;
if last.subject_id then
2009 Apr 27
1
For Loop Syntax
Hi there,
Just wondering if someone can help me with the correct syntax to use
with for loops?
I have split my original file by count, & wish to first of all assign
new tables based on the splits. Then I just want to create a new
variable. Please see code below.
This code works outside of a loop so I am just trying to code so I don't
have to repeat numerous times.
Many
2009 Apr 23
3
Running Scripting on Linux Machine
Hi all,
I am new to using R on a Linux machine & I have a few questions on
set-up. If anyone has experience in this area any advice would be
greatly appreciated.
- When I open R I have the option to do the following:
o 'Run in Terminal'
o 'Display'
o 'Cancel'
o 'Run'
- My only option to open a window such as we find in
2009 Apr 23
3
Running Edit() or Fix() on Linux Machine
Hi all,
As I am new to using R on a Linux machine I have another question if
that's ok.
I am trying to use the fix() or edit() function on this Linux machine
but I get the following error message:
Error in dataentry(datalist, modes) : invalid device
In addition: Warning message:
In edit.data.frame(get(subx,envir=parent),title = subx, ...) :
Unable to create fontset
2009 Jul 30
2
weight median by count for multiple records
Hello everyone,
I have a .csv file with the following format:
uniqueID SubjectID Distance_miles Tag
1 1001 5.5 3
2 1001 7 1
3 1001 6.5 1
4 1001 5 1
5 1002
2009 Jan 25
1
Multiple lattice plots on a page: aligning x-axes vertically
Dear R-help,
I am creating a two lattice plots (a densityplot() and xyplot()) that
have the same x-axes and then 'printing' them onto the same page, one
above the other (see end of email for an example to generate the graph).
With different labels on the y-axis for each plot the left spacing is
different, and the x-axes don't align vertically. Although I can
manually modify the
2009 Jan 27
1
Creating list or numeric vectors out of selected columns of row oriented data
I am just assuming this can be done, but I have not gotten close to
making it happen. I have a data file with about 1 million rows with
1470 unique subjects. Each row represents a small set of observations
made on a specific date for a single subject. I would like to
transform the data so that I have an R object with a single entry for
each subject and start date and vectors for the
2008 Nov 20
2
Calculating SD according to groups of rows
*Hi all,
I know this is probably basic, but I have proven to be a slow learner in any
programming language. Anyhow,
how can I calculate the SD for each person in my table? I have two patients
in this R data.frame, 7200 and 23955.
I extracted this from a relational database, but am I better off attempting
to compute SD in SQL, or is this easily accomplished in R?
* SUBJECT_ID HR
1
2009 Sep 23
2
collection_text onchange event
hi,
I want to display a drop down list and when i select some option from
the drop down list i want to display all the records under that selected
category in the "SAME PAGE"..
eg ..
<%= collection_select(:question,:subject_id ,@subject, :id, :name) %>
when i choose a subject i should, display all the questions under that
subject in the same page.I am new to rails.Can
2009 Feb 25
4
Have a function like the "_n_" in R ? (Automatic count function )
Have the counter function in R ?
if we use the software SAS
/*** SAS Code **************************/
data tmp(drop= i);
retain seed x 0;
do i = 1 to 5;
call ranuni(seed,x);
output;
end;
run;
data new;
counter=_n_; ***** this keyword _n_ ****;
set tmp;
run;
/*
_n_ (Automatic variables)
are created automatically by the DATA step or by DATA step statements.
*/
/*** Output
2004 Nov 05
1
R usage -- for article
Hello all,
I write a decision-support column for a computing magazine,
Intelligent Enterprise. In my next column, I'll be revisiting a topic I
wrote on 3 years ago, open-source analytical software. R is perhaps the
most successful open-source analytical package.
I'd like to hear from users, especially those who chose R for some
other reason than that it's free, about what
2009 Apr 22
2
Exporting objects plotted with plot3d() - rgl package
Dear all,
Can anybody tell me how to export a 3d figure made with the plot3d
function? I'm careless about whether it's still interactive or not in
another format, as long I can get it out of R.
Thanks!
Alejandro Gonz?lez
Departamento de Biodiversidad y Conservaci?n
Real Jard?n Bot?nico
Consejo Superior de Investigaciones Cient?ficas
Claudio Moyano, 1
28014 Madrid, Spain
Tel +0034
2018 Aug 20
1
Missing folders inside huge folders catalog.
> On Sun, Aug 19, 2018 at 06:25:56PM +0300, Nmz via samba wrote:
>> Hi,
>>
>> I get into the problem with samba ( Version 4.8.3-Debian ). Don't know how to troubleshoot it.
>>
>> The test scenario #1:
>>
>> Creating 5000 folders inside Linux server: #for i in {001..5000}; do mkdir $i; done;
>>
>> All catalogs are showing in Windows
2003 Feb 10
2
Apple shares?
Hi,
I have a need to do some file transfers between my AIX 4.3.3 boxes and Apple
PC's. I use SAMBA to provide shares to PC's, but I know nothing about Apple.
FTP is an option, but less desirable than setting up a share. Does anyone
have experience with using SAMBA to set up shares with Apple clients?
I know that there are, other products to accomplish what I ask, but in terms
of support
2005 Aug 05
1
kappa-accuracy and test for signifcance
Dear list,
I calculated the kappa-accuracy for two differnt classifications.
How can I test now the two kappa-value for significance?
thanks, Mark
.....................................................................
Markus Schwarz
Wissenschaftliche Mitarbeiterin
Eidg. Forschungsanstalt WSL
Forschungsprogramm Musterland
Z??rcherstrasse 111
CH-8903 Birmensdorf
Telefon +41-44-739 22 87
Fax
2002 Oct 29
2
Selective blocking of password authentication
I'm running OpenSSH 3.4 and have the situation that some users want to
allow password authentication into their accounts and some explicitly
want to disallow password authentication. Is this possible? I wasn't
able to come up with a way looking through ssh_config and sshd_config,
as well as some FAQs.
It seems the problem is that there is no scoping of directives in sshd_config,
thus
2009 Jul 17
2
Count data categories from table
Hi there,
I have a relatively simple question, though, I couldn't find a solution for
it so far. I have a table with 1000 entries and columns containing
information about different parameters for each entry.
What I want to do is group all parameters from one of the columns [e.g. if
all 1000 entries are grouped in 30 different categories (described as
character strings) in a second column] and
2012 Mar 27
2
rgl package broke with R 2.14.2
Dear People
I can't figure out how to fix this problem: rgl won't run under R
2.14.2 (it was working for me before under 2.14.0). The error message
is:
> library(rgl)
Error : .onLoad failed in loadNamespace() for 'rgl', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/Library/Frameworks/
2005 Jun 13
3
validations not working with collection population droplists
I have an ADD form with foreign key field values selectable via select
list ( collection_select (...)).
When I add validates_presence_of :someotherfield to my model for error
trapping, I get the following error for each droplist:
NoMethodError in Reviews#create_curriculum
Showing /reviews/_form.rhtml where line #16 raised:
undefined method `inject'' for nil:NilClass
Extracted source
2006 Jan 08
2
Why is my record readonly=>true?
Hello:
I have something very order to create my object
def review
@bit = Bit.find(:first,
:select => "bits.*,subjects.id as sid,
subjects.name,gaps.id as gid, gaps.gap",
:joins => "left join (subjects,gaps) on
(bits.subject_id = subjects.id and bits.gap_id = gaps.id)",
:conditions =>