Displaying 20 results from an estimated 200 matches similar to: "how to get f(x)=___ from a piecwise function"
2017 Aug 10
3
Creating New Variable Using Ifelse
Hello R Help List,
I am an R novice and trying to use the ifelse function to create a new binary variable based off of the responses of two other binary variables; NAs are involved. I pulled it off almost successfully, but when I checked the counts of my new variable for accuracy, I found that a small portion of the NA cases were not being passed through as NAs, but as "0" counts in my
2017 Aug 10
0
Creating New Variable Using Ifelse
Hi
see in line
> -----Original Message-----
> From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of Courtney
> Benjamin
> Sent: Thursday, August 10, 2017 5:55 AM
> To: r-help at r-project.org
> Subject: [R] Creating New Variable Using Ifelse
>
> Hello R Help List,
>
> I am an R novice and trying to use the ifelse function to create a new binary
>
2006 Apr 28
1
unrooted tree and margins, ape package
Hello,
I have a question about margins when plotting an unrooted tree
(type="unrooted") with the 'ape' package ver. 1.7. When I plot an unrooted
tree with:
no.margin=TRUE
it seems that the margins are still there. It appears to be only when
type="unrooted".
I'm plotting multiple plots using layout() and would like to be able to get
rid of the margins or if
2005 Apr 16
2
"chronological" ordering of factor in lm() and plot()
I am trying to do some basic regression and ANOVA on cycle times (numeric
vectors) across weekdays (character vector), where I have simply labelled my
days as:
days<- c("mon","tue","wed"...etc).
(NOTE: There are actually multiple instances of each day, and the data is
read-in from a .dat file.)
I have no trouble at all with the actual number crunching, It is the
2018 Aug 05
2
Access by share name
Hi!
I have two server samba member domain.
Version 4.8.3(Compilated)
Running in Ubuntu LTS 16.04
With GlusterFS(Replicated)
and
Heartbeat(for HA)
IP A: 192.168.200.1 (DNS: Fileserver1) -> Master
IP B: 192.168.200.2 (DNS: FIleserve2) -> Slave
IP C:192.168.200.10 -> (DNS: Fileserve) -> Heartbeat -> IP that stays
with master server , when UP, if down IP "junp" for
2005 Dec 01
4
values in between
Hey there
I have two vectors:
y<- c(0.4, 0.0, 0.2, -0.2, -0.6, 0.2, 0.0, 0.0, 0.4, 0.4, 0.2)
In the vector y, I want to access (in the order given) all of the values in
between each of the specific values of given.
I understand subsetting with y[i], but how do I get to ssomewhere in
between -0.6 and 0.2?
Thanks
Eric Jennings
matheric at myuw.net
2003 Apr 04
2
Bug in %in% (match)
Hi,
Am I hitting some limit in match? Consider the following example:
> tst<-seq(100,125,by=.2)%in%seq(0,800,by=.1)
> sum(tst)
[1] 76
> seq(100,125,by=.2)
[1] 100.0 100.2 100.4 100.6 100.8 101.0 101.2 101.4 101.6 101.8 102.0
102.2
[13] 102.4 102.6 102.8 103.0 103.2 103.4 103.6 103.8 104.0 104.2 104.4
104.6
[25] 104.8 105.0 105.2 105.4 105.6 105.8 106.0 106.2 106.4 106.6 106.8
2003 Apr 04
2
Bug in %in% (match)
Hi,
Am I hitting some limit in match? Consider the following example:
> tst<-seq(100,125,by=.2)%in%seq(0,800,by=.1)
> sum(tst)
[1] 76
> seq(100,125,by=.2)
[1] 100.0 100.2 100.4 100.6 100.8 101.0 101.2 101.4 101.6 101.8 102.0
102.2
[13] 102.4 102.6 102.8 103.0 103.2 103.4 103.6 103.8 104.0 104.2 104.4
104.6
[25] 104.8 105.0 105.2 105.4 105.6 105.8 106.0 106.2 106.4 106.6 106.8
2016 Jul 16
5
[PATCH] : Adding dlabel option to chain.c32
The idea is to boot a disk in an mbr fashion while using the GPT (not
filesystem) label to detect the disk.
That is useful when you use grub2 & gpt. I was in case where my nodes
(100s) have 8 disks each and no guarantee of which disk is "bootable" in
the disk.
This way I can tell "please boot the disk that have one partition labelled
"xyz"".
So nothing related
2007 Nov 07
1
Aggregate with non-scalar function
R-Helpers,
I'm sorry to have to ask this -- I've not used R very much in the last
8 or 10 months, and I've gotten rusty.
I have the following (ff2 is a subset of a much, much larger dataset):
> ff2
hostName user sys idle obsTime
10142 fred 0.4 0.5 98.0 2007-11-01 02:02:18
16886 barney 0.5 0.2 94.6 2007-10-25 19:12:12
8795 fred 0.0 0.1 99.8
2008 Dec 06
1
Questions on the results from glmmPQL(MASS)
Dear Rusers,
I have used R,S-PLUS and SAS to analyze the sample data "bacteria" in
MASS package. Their results are listed below.
I have three questions, anybody can give me possible answers?
Q1:From the results, we see that R get 'NAs'for AIC,BIC and logLik, while
S-PLUS8.0 gave the exact values for them. Why? I had thought that R should
give the same results as SPLUS here.
2011 Apr 23
3
Problem having tick marks aligned when plotting three graphs on top of one another.
R 2.10
Windows 7
I am trying to plot three graphs on top of each other. I need to have the axises perfectly aligned. For some reason the ticks on the y axes are slightly off so they do not perfectly align. Can someone tell me how I can get the to overlay each other perfectly? I thought the yaxp parameter would solve my problem, but it does not. My data and code follows:
>
2016 Jul 28
2
[PATCH] : Adding dlabel option to chain.c32
That is perfectly true. I had a beautiful bug in the code .... Switching
from python to C have some weird side-effect. Indenting is not enough,
brackets are required....
So I pushed
https://github.com/ErwanAliasr1/syslinux/commit/5a122d218553a6d4019273653ba9fad66d6ae79e
with the fix.
I tested it on my multi-disk system with success.
I also changed the name of the function.
2016-07-17 8:21
2005 May 12
26
performance update
I have made additional progress with regard to performance. My latest data:
configuration 1: r121.latest
configuration 2: r121p.latest
page c1 real c2 real c1 r/s c2 r/s c1/c2
/empty/index 6.75525 1.71983 148.0 581.5 3.93
/welcome/index 6.89044 1.89244 145.1 528.4 3.64
/rezept/index 4.99573
2018 Aug 06
2
Access by share name
On Mon, 6 Aug 2018 10:18:41 -0300
Carlos via samba <samba at lists.samba.org> wrote:
> Hi!
>
> Thanks for anwser!
>
> Well, GlusterFS just replicating(it is ok).
>
> Problem is access second server with specific name.....
Yes, but what specific name ? is it the machines short hostname
(netbios name) or what ?
>
> Popup appears requesting domain
2011 May 28
3
Three sigma rule
Dear Sir,
I have data, coming from tests, consisting of 300 values. Is there a way in
R with which I can confirm this data to 68-95-99.8 rule or three-sigma rule?
I need to look around percentile ranks and prediction intervals for this
data. I, however, used SixSigma package and used ss.ci() function, which
produced 95% confidence intervals. I still am not certain about percentile
ranks
2010 Oct 03
2
Read file
Dear R-users,
I would like to know how could I read a file with different lines lengths.
I need read this file and create an output to feed my database.
So after reading I'll need create an output like this
"INSERT INTO TEMP (DATA,STATION,VAR1,VAR2) VALUES (20100910,837460, 39,390)"
I mean, each line should be read. But I don`t how to do this when these
lines have different
2016 Jul 17
2
[PATCH] : Adding dlabel option to chain.c32
>
> As opposed to "label",
> "dlabel" ...
> https://github.com/ErwanAliasr1/syslinux/commit/ebf8cbf
>
> SeaBIOS / GRUB2
>
> ...
> ...
> <target dev='vdc' bus='virtio'/>
> <boot order='3'/>
> ...
> ...
> <target dev='vdd' bus='virtio'/>
2018 May 29
2
CentOS6: HELP! EFI boot fails after replacing disks...
At Mon, 28 May 2018 19:30:25 -0400 CentOS mailing list <centos at centos.org> wrote:
>
> On May 28, 2018, at 18:25, Robert Heller <heller at deepsoft.com> wrote:
>
> > I tried to run efibootmgr, but it wants a model named efivars loaded, but
> > there is no such module available.
>
> Are you not running a CentOS kernel? That module should be available.
2010 Feb 11
2
Question about rank() function
Hello,
I am trying to get the 'rank' function to work for me, but not sure what I
am doing wrong. Please help.
I ran the following commands:
data = read.table("test1.csv", head=T, as.is=T, na.string=".", row.nam=NULL)
X1 = as.factor(data[[3]])
X2 = as.factor(data[[4]])
X3 = as.factor(data[[5]])
Y = data[[2]]
model = lm(Y ~ X1*X2*X3, na.action = na.exclude)
fmodel =