Displaying 20 results from an estimated 40000 matches similar to: "How Can I Tell if the R Running is 64 bit or 32 bit?"
2009 May 21
4
Re placing a "+" in a string
I know this is easy, but I am stumped:
> gsub("0","K","8.00+00")
[1] "8.KK+KK"
> gsub("+","K","8.00+00")
Error in gsub("+", "K", "8.00+00") : invalid regular expression '+'
In addition: Warning message:
In gsub("+", "K", "8.00+00") :
regcomp error:
2008 Aug 03
1
Will This Computer Run 64 bit Ubuntu/R?
After doing some reading about 64-bit systems and software I am still
somewhat uncertain about some things. I have a Dell Dimension XPS 400 with a
dual core Intel Pentium D 940 (3.2 GHz) and 4 Gb of memory. I currently dual
boot the system with XP Professional and Ubuntu 8.04 (32 bit). If I simply
install Ubuntu 8.04 (64 bit) on this system will it run the 64 bit linux
version of R? I would
2008 Oct 14
6
Doing a Task Without Using a For Loop
Assume that I have the dataframe "data1", which is listed at the end of this
message. I want count the number of lines that each person has for each
year. For example, the person with ID=213 has 15 entries (NinYear) for 1953.
The following bit of code calculates NinYear:
for (i in 1:length(data1$ID)) {
data1$NinYear[i] <- length(data1[data1$Year==data1$Year[i] &
2009 Feb 01
2
Extracting Coefficients and Such from mle2 Output
The mle2 function (bbmle library) gives an example something like the
following in its help page. How do I access the coefficients, standard
errors, etc in the summary of "a"?
> x <- 0:10
> y <- c(26, 17, 13, 12, 20, 5, 9, 8, 5, 4, 8)
> LL <- function(ymax=15, xhalf=6)
+ -sum(stats::dpois(y, lambda=ymax/(1+x/xhalf), log=TRUE))
> a <- mle2(LL,
2008 Sep 24
1
How do I Convert "<1" to the number 1?
Is there an elegant way in R to change a number reported as a less-than
number in text format, "<1" for example, to the numeric equivalent 1? I have
been trying to use as.numeric, but have not come up with anything clever
yet.
Tom
--
View this message in context: http://www.nabble.com/How-do-I-Convert-%22%3C1%22-to-the-number-1--tp19651018p19651018.html
Sent from the R help
2009 Jan 23
2
Dates in Common
I have two collections of dates and I want to figure out what dates they have
in common. This is not giving me what I want (I don't know what it is giving
me). What is the best way to do this?
Tom
> data1
[1] "1948-02-24 EST" "1949-04-12 EST" "1950-05-29 EDT" "1951-05-21 EDT"
[5] "1951-12-20 EST" "1953-01-22 EST"
2008 Mar 12
7
Specifying relative position of text in a plot
What is the simplest way to specify the location of text in a scatter plot
(created using the plot function) in relative terms rather than specific x-y
coordinates? For example, rather than putting text at (300,49) on a plot,
how do I put it 1/10 of the way over from the y axis and 1/2 of the way up
from the x axis? Thanks.
Tom
--
View this message in context:
2008 Jun 17
1
Simultaneous Confidence/Prediction Bands
Is there a built-in function in R that will generate simultaneous confidence
and prediction bands for linear regression?
Tom
--
View this message in context: http://www.nabble.com/Simultaneous-Confidence-Prediction-Bands-tp17941537p17941537.html
Sent from the R help mailing list archive at Nabble.com.
2010 Mar 28
3
Ellipse that Contains 95% of the Observed Data
I can take the results of a simulation with one random variable and generate
an empirical interval that contains 95% of the observations, e.g.,
x <- rnorm(10000)
quantile(x,probs=c(0.025,0.975))
Is there an R function that can take the results from two random variables
and generate an empirical ellipse that contains 95% of the observations,
e.g.,
x <- rnorm(10000)
y <- rnorm(10000)
?
2010 Jul 02
2
Best way to determine if you're running 32 or 64 bit R on windows
Hi,
Is this sufficient?
if (.Machine$sizeof.pointer==4){
cat('32\n')
} else {
cat('64\n')
}
Or is it better to test something in R.version, say os?
I'd like to use this to specify appropriate linker arguments when
building the RMySQL windows package.
Jeff
--
http://biostat.mc.vanderbilt.edu/JeffreyHorner
2007 May 31
3
Problem with Weighted Variance in Hmisc
The function wtd.var(x,w) in Hmisc calculates the weighted variance of x
where w are the weights. It appears to me that wtd.var(x,w) = var(x) if all
of the weights are equal, but this does not appear to be the case. Can
someone point out to me where I am going wrong here? Thanks.
Tom La Bone
[[alternative HTML version deleted]]
2017 Oct 25
4
Problem Subsetting Rows that Have NA's
On 10/25/2017 4:38 AM, Ista Zahn wrote:
> On Tue, Oct 24, 2017 at 3:05 PM, BooBoo <booboo at gforcecable.com> wrote:
>> This has every appearance of being a bug. If it is not a bug, can someone
>> tell me what I am asking for when I ask for "x[x[,2]==0,]". Thanks.
> You are asking for elements of x where the second column is equal to zero.
>
>
2017 Oct 24
5
Problem Subsetting Rows that Have NA's
This has every appearance of being a bug. If it is not a bug, can
someone tell me what I am asking for when I ask for "x[x[,2]==0,]". Thanks.
> #here is the toy dataset
> x <- rbind(c(1,1),c(2,2),c(3,3),c(4,0),c(5,0),c(6,NA),
+ c(7,NA),c(8,NA),c(9,NA),c(10,NA)
+ )
> x
[,1] [,2]
[1,] 1 1
[2,] 2 2
[3,] 3 3
[4,] 4 0
[5,] 5 0
2017 Oct 25
0
Problem Subsetting Rows that Have NA's
> On Oct 25, 2017, at 6:57 AM, BooBoo <booboo at gforcecable.com> wrote:
>
> On 10/25/2017 4:38 AM, Ista Zahn wrote:
>> On Tue, Oct 24, 2017 at 3:05 PM, BooBoo <booboo at gforcecable.com> wrote:
>>> This has every appearance of being a bug. If it is not a bug, can someone
>>> tell me what I am asking for when I ask for "x[x[,2]==0,]". Thanks.
2016 Mar 18
1
Can I use 'virsh save' this command only get 'vm physical memory' ? If not , please tell me how can I get it .
Can I use 'virsh save' this command only get 'vm physical memory' ? If not ,please tell me how can I get it .
Thanks in advance.
Lee Wen
2006 Jun 03
1
Can I tell if the associated record is new in a belongs_to save?
In a belongs_to association, is there a way to tell if the associated object
was newly created?
Hopefully this will explain my question:
A Firm class declares
has_many<http://api.rubyonrails.com/classes/ActiveRecord/Associations/ClassMethods.html#M000530>:clients
and a
client class declares
2009 Dec 06
1
OT: How can I tell if a web site is now blocking IPs from my country?
I have always been able to browse, without any problems,
http://www.mobile-review.com/index-en.shtml but for the past 2 or 3
days, Mozilla Firefox just hangs "connecting to ...." How can I tell
if they have started blocking IP addresses from Colombia? I would
like to do that, before I post to the IPCop mailing list. I have my
IPCop box set up to do DNS Caching, so possibly something
2011 Aug 14
1
Problems running Sims 3. Can you tell me what this error is?
Hi, I've been googling like mad trying to get Sims 3 working on Ubuntu 10.04 LTS. I have wine, mono and winetricks installed and have tried all the tips I can find. I got rid of the 'no game disk' problem, then I started crashing as the town was loading. Sometimes the installer doesn't even get to the intro video.
Anyway, this error is a recurring thing throughout, so I was
2007 Mar 18
2
Problem Loading rggobi package
After installing rggobi, I get the following error when I try to load it:
> local({pkg <- select.list(sort(.packages(all.available = TRUE)))
+ if(nchar(pkg)) library(pkg, character.only=TRUE)})
Loading required package: RGtk2
Error in dyn.load(x, as.logical(local), as.logical(now)) :
unable to load shared library
2004 Dec 29
1
Can I tell if it hung up due to busydetect or disconnect supervision?
The FXO lines on my TDM400 are connected to PSTN lines in Israel. As far as
I know, the lines around here have disconnect supervision (I've seen some
other Israelis on this list, anyone know for sure?), because it's worked on
Dialogic cards, which reported hangup, not busy detect (while when I connect
a Dialogic card to a PBX, I have to measure the busy signal's
frequency/cadence or