Displaying 20 results from an estimated 20000 matches similar to: "counting the number of ones in a vector"
2001 May 09
1
Errors on install...
Hi all,
I found the web site for R and decided to install it on my freebsd system;
however, I have run into 'permission problems' during execution.  I do the
standard .configure, make, make check, make install and install into the
default location of /usr/local/... but when a normal user attempts to run
'R' I get the following: 
--- 
[tulip ~]% R
R : Copyright 2001, The R
2017 Jan 12
3
rgl
----Original Message-----
From: Martyn Plummer [mailto:plummerm at iarc.fr] 
Sent: Thursday, January 12, 2017 3:36 AM
To: Weiner, Michael <weinerm at ccf.org>; r-sig-fedora at r-project.org
Subject: Re: [R-sig-Fedora] rgl
>One possibility is that you have the 32-bit version of mesa-libGL-devel installed. This will provide the headers but not the 64-bit l>ibrary which is what you need
2010 Feb 23
1
Circles around letters or numbers in plot title
Has anyone ever tried putting a circle around a letter or a number in a
plot title?
For instance, if I have a plot title "Scatterplot for Subject 24", I
want to put a circle around 24 to distinguish that plot from the other
30 I've generated.  Any tips or ideas beyond plotting a circle in the
margin?
Benjamin 
 
  Benjamin Nutter |  Biostatistician  |  Quantitative Health
2010 Mar 16
2
Retrieving latitude and longitude via Google Maps API
Does anyone have any experience retrieving latitutde and longitude for
an address from the Google Maps API?  
I'd like to have an R script that submits a street address, city, state,
and zip code and returns the coordinates.  So far, I've been submitting
the coordinates from another program, then loading the coordinates in R
and merging them back into the data frame I want to use. 
2010 Feb 01
5
regular expression submatch?
What is the simplest way to extract a matched subexpression? 
Eg. in perl you can do
"hello world" =~ m/hello (.*)/  
which would return 1(true) and set $1 to the matched subexpression "world".
-- 
View this message in context: http://n4.nabble.com/regular-expression-submatch-tp1459146p1459146.html
Sent from the R help mailing list archive at Nabble.com.
2009 Apr 24
4
omit empty cells in crosstab?
Perhaps this is a common question but I haven't been able to find the answer.
I have data with many factors, each taking many values. However, only
relatively few combinations appear in the data, ie have nonzero counts, in
other words the resulting table is sparse. Say we have 10 factors each with
10 levels. The result of table() would exceed the memory space (on a 32bit
machine). Is there
2017 Jan 11
2
rgl
I have a Fedora linux 24 64bit workstation I am trying to install rgl on and I keep running into this error:
trying URL 'https://cran.cnr.berkeley.edu/src/contrib/rgl_0.97.0.tar.gz'
Content type 'application/x-gzip' length 2369444 bytes (2.3 MB) ==================================================
downloaded 2.3 MB
* installing *source* package 'rgl' ...
** package
2011 Oct 13
5
Counting the number of integers at one swoop
Dear R users,
I'd like to count the number of integers in a vector y.
Here is an example.
y <- c(0,1,1,3,3,3,5,5,6)
In fact, I know how to count the number of specific number in y.
sum(y==0) -> 1
sum(y==1) -> 2
sum(y==2) -> 0
sum(y==3) -> 3
sum(y==4) -> 0
sum(y==5) -> 2
sum(y==6) -> 1
However, in one computation I want to get this vector [1,2,0,3,0,2,1]. 
Thank
2008 Dec 11
1
How to generate a prediction equation for a stratified survival model that was fitted by cph() in Design package
Dear all,
I used cph() function from Frank harrell's Design package to create a
survival model, then used functions 'Function' and 'sascode' to generate
prediction equation based on the saved survival model. But it failed. I
included a stratified variable in the model. If I removed the
stratification, they were working well. Does that mean that function
'Function'
2017 Jan 12
2
rgl
-----Original Message-----
From: Tom Callaway [mailto:tcallawa at redhat.com] 
Sent: Thursday, January 12, 2017 8:25 AM
To: Weiner, Michael <weinerm at ccf.org>; r-sig-fedora at r-project.org
Subject: Re: [R-sig-Fedora] rgl
On 01/12/2017 08:01 AM, Weiner, Michael wrote:
> I resolved this by reinstalling mesa-libGL (dnf reinstall libGL) seems /lib64/libGL.so.1.2.0 was missing off the
2012 Nov 09
1
Counting the numbers of items in vector according to their size
I am new to R and learned to program 10 years ago in C++. I am currently
working a project that looks at the distribution of randomly generated beta
values. I take 20 random beta values find their sum, repeat 100000 times.
Here is my code that it took me 4 hours to get
s=numeric(length=100000)
for(i in 1:100000){
  pop=(rbeta(n=20,shape1=2,shape2=1))
  s[i]=sum(pop)
}
So now I have them all in
2025 Jan 15
2
new release 3.4.0 - critical security release
Another issue here in findme.c. strlcpy() is a BSD-only method and definitely not portable.
Please consider other platforms when creating patches. I can provide a patch to this
patch also.
 
Thanks,
Randall
 
From: rsync <rsync-bounces at lists.samba.org> On Behalf Of Randall S. Becker via rsync
Sent: January 14, 2025 6:46 PM
To: 'rsync.project' <rsync.project at
2010 Aug 17
3
Sweave
Dear R users,
I am using Sweave.
I would like to use the width option for the graphics :
\begin{figure}[h!]
\centering
\includegraphics[width=0.7\textwidth]{x}
\end{figure}
How do I get this ?
Thank you very much,
Randall
	[[alternative HTML version deleted]]
2009 Dec 29
3
Newbie needs to count elements in a row
Hi,
I have a n*m matrix and would like to count the number of elements not equal to NA in a ROW.
e.g.
x 1 2 3 NA 10
y 2 NA 8 9 NA
Which function can I use to obtain 
"4" for row x and 
"3" for row y?
Could you help me? I found some functions for columns but not for rows...
Thank you very much!
2017 Jan 12
2
rgl
-----Original Message-----
From: Weiner, Michael 
Sent: Thursday, January 12, 2017 7:46 AM
To: r-sig-fedora at r-project.org
Subject: RE: [R-sig-Fedora] rgl
-----Original Message-----
From: Martyn Plummer [mailto:plummerm at iarc.fr] 
Sent: Thursday, January 12, 2017 7:41 AM
To: Weiner, Michael <weinerm at ccf.org>; r-sig-fedora at r-project.org
Subject: Re: [R-sig-Fedora] rgl
>>
2025 Jan 15
1
new release 3.4.0 - critical security release
The popt changes came from upstream popt. We have Solaris and FreeBSD CI
tests, along with linux, but don't have a method for testing other
platforms. If you submit a PR to fix this, please consider a way we can
test the fix in CI.
Cheers, Tridge
On Wed, 15 Jan 2025 at 14:35, <rsbecker at nexbridge.com> wrote:
> Another issue here in findme.c. strlcpy() is a BSD-only method and
>
2004 Dec 16
8
counting numbers without replicates in a vector
Hi,
I am just wondering if there is an easy way to count
in a numeric vector how many numbers don't have
replicates. 
For example, 
a=c(1,1,2,2,3,4,5), how can I know there are three
numbers (3, 4 and 5) without replicates?
Thank you!
Jun
=====
2007 Nov 16
1
How do I import packages with the package I've built?
I have successfully completed building a package to contain the
functions I commonly use.  However, I need to have other packages
installed in order for some of my functions to work.  I've been studying
the instructions on installing packages for about a month now, but still
haven't figured this one out.  From what I do understand, to import
additional packages I need some combination of
2020 Sep 20
2
Call for testing: OpenSSH 8.4
On Sun, Sep 20, 2020 at 03:13:28PM -0400, Randall S. Becker wrote:
> On September 20, 2020 2:02 AM, Damien Miller wrote:
> > OpenSSH 8.4p1 is almost ready for release, so we would appreciate testing
> > on as many platforms and systems as possible. This is a bugfix release.
> 
> I will be testing this shortly on HPE NonStop platforms.
> 
> Side question: We now have
2017 Jan 12
1
rgl
-----Original Message-----
From: Martyn Plummer [mailto:plummerm at iarc.fr] 
Sent: Thursday, January 12, 2017 7:41 AM
To: Weiner, Michael <weinerm at ccf.org>; r-sig-fedora at r-project.org
Subject: Re: [R-sig-Fedora] rgl
>> configure:4429: checking for glEnd in -lGL
>> configure:4454: gcc -o conftest -g -O2??-DHAVE_PNG_H
>> -I/usr/include/libpng16??conftest.c