Displaying 20 results from an estimated 200 matches similar to: "Search a string and modify it in a .txt file"
2009 Aug 01
2
Add columns in a dataframe and fill them from another table according to a criteria
Deare R users
I am new to R.
What I want to do is explained below;-
I have table called States.Prob which is given below:-
This table gives the probabilities of the changes in the swap curve
depending on the state of the swap curve. I want to put these probabilities
in my dataframe mydata(given after the prob table).
Prob of States
Changes State1 State2 State3 State4
a
2009 Jul 31
1
Fill dataframe from a table according to a criteria
Deare R users
I am new to R.
What I want to do is explained below;-
I have table called States.Prob which is given below
Prob of States
Changes State1 State2 State3 State4
A Pa1 Pa2 Pa3 Pa4
B Pb1 Pb2 Pb3 Pb4
C Pc1 Pc2 Pc3 Pc4
D Pd1 Pd2 Pd3 Pd4
and I have a dataframe called
2011 Jan 20
4
How to reshape wide format data.frame to long format?
Dear list,
I need to convert this data.frame
> names(codesM)
[1] "key" "AMR.pa1.M" "AMR.pa2.M" "AMR.pa3.M" "AMR.pa4.M"
[6] "AMR.pa5.M" "AMR.pa6.M" "AMR.pa7.M" "AMR.pa8.M" "AMR.pa9.M"
[11] "AMR.pa10.M" "AMR.ta1.M" "AMR.ta2.M" "AMR.ta3.M"
2011 Jan 31
4
Select rows with distinct values in a column and other conditions
My data frame looks like:
SightingID PA1 PA2 PlotID InOverlap Area1 2001 1 -99 392 Y 0.22 2002 1 -99 388 Y 0.253 2008 1 NA 104 N 0.344 2010 1 NA 71 N 0.185 2012 1 NA 61 N 0.166 2013 1 NA 61 N 0.227 2014 1 NA 62
2005 Nov 16
5
"Warning message: package '...' was built under R version 2.3.0"
Hi,
While installing precompiled packages I often get warnings like the one in
the subject. I usually ignore them, but I still do not understand why
windows packages are build with unreleased versions of R.
Is there some way to get packages build under R-2.2.0?
What are potential problems that can result from that version mismatch?
My system: winXP
R version: 2.2.0
Jarek Tuszynski
2008 May 28
1
Search&replace string?
Hi there,
I would like to know if it is possible to modify a text file with a R function.
In fact I would like to know if a function "Search & Replace" exists.
My problem is to create config files from a Base file in which I have to modify values of parameters.
My Base File:
#...
#...
Param1= V1_1
#...
Param2 = V2_1
Param3 = V3_1
#...
What I would like for each created file
2009 Jul 23
1
ggplot2 : commands on one line vs two lines.
I have just started using ggplot2 and I seem to be doing something stupid
in writing ggplot2 commands on more than one line.
In the example below the commands on one line are working fine, but as
soon as I put them on two lines I get an error. Can any one point out
what I am doing wrong? It must be something blindingly simple.
Thanks
Example
2003 Dec 26
2
OC curve in "Quality Control"
Dear all,
Can anyone please help me about any of the following questions:
--------------------------------------------
1. How can i find "factorial" of any number in R? I tried
> prod(170:1) # to find factorial of 170 or 170!
Is it the only procedure - or R has any better process / operational
character to calculate factorial? Also, is it possible to calculate
factorial of 500? Or
2015 Jan 15
2
[LLVMdev] AllocaInst for FunctionType?
Hi,
I'm trying to get my head around c++ - IR - c++ API and getting used
tramform manual information to code.
The manual states alloca is defined for <type>. FunstionType is a type, so
alloca for functionType should be possible? Not?
If we have a valid Module *m
we can get an allocate instruction allocating space for a non-argumented
function as follows:
AllocaInst* pa2 = new
2009 Jul 15
0
Fwd: DLLs
Thanks for your help with this problem about dynamic linked libraries.
I thought I had it solved, but apparently not.
Below is a small piece of Pascal code that I compile into a library.
When I load the library using dyn.load R becomes very unstable.
The Mac GUI crashes in all kinds of situations --even moving a window
can sometimes crash it.
Running from the command line (I thought the
2012 Oct 05
2
Dúvida função Anova pacote car - Medidas repetidas
Olá pessoal, estou realizando uma ANOVA com medidas repetidas e estou
utilizando a função "Anova" do pacote "car".
Medi o biovolume de algas a cada dois dias durante 10 dias (no banco de
dados abaixo só coloquei até o 4° dia). Tenho 2 tratamentos ("c","t") e o
experimento foi realizado em tréplicas ("A","B","C").
> Pa2
2012 Jun 08
2
Percent of a given subset
How would I find the Percent of FuelTypeNum within the Band given
AvailableMW?
example:
type 1 is 1% of PB0
type 2 is 54% of PB0
type 4 is 4% of PB0
type 5 is 42% of PB0
Note: the Bands and fuel types are not always constant.
Data:
FuelTypeNum Bands AvailableMW AvailableMWNewFormat
1 PB0 185319 185.319
2 PB0 18352000 18352
4 PB0 1338785 1338.785
5 PB0 14189756 14189.756
2 PB1
2016 Aug 17
2
Any good SNMP tutorial?
Hello, I am looking for good instructions on how to configure NUT to receive SNMP Trap signals and how to shutdown a server. My setup is:
NUT: version 2.7.1-1ubuntu1, from package
OS: Ubuntu 14.04.5 LTS
UPS: Tripp Lite SMART3000RM2U
The only thing I was able to understand from the documentation is to an entry in ups.conf:
[tripplite-pa3]
driver = snmp-ups
port =
2010 Feb 10
2
How to create probeAnno object?
Hi,
I want to use segChrom() method in tilingArray package. For that I need to create a probeAnno object. I could not find much much info by ?probeAnno. I need help in creating probeAnno object.
Snap shot of the file(.txt):
chr1 2500014 2500038 + 0.232689943122845
chr1 2500039 2500063 + 2.60502410304227
chr1 2500062 2500086 + 0.0756595313279895
chr1 2500080 2500104 + 0.78574617788405
chr1
2009 Apr 15
2
How to extract p-value into a table from a groups of t test
Hi,
I have run a groups of t test and obtained a list of the t-test results
(about 30). How do I extract p-values from the 30 t-test results and make a
table output? Thanks
Jun
Example t-test output:
============================
$Lambda_z
Welch Two Sample t-test
data: x[PA1.BS.DN$Onecode == 2] and x[PA1.BS.DN$Onecode == 3]
t = -0.1128, df = 33.635, p-value = 0.9109
alternative
2010 Mar 19
1
Sweave and " object of type 'closure' is not subsettable" error
Hello folks:
I have a data frame which includes two numeric vectors: "Pa1" and "Ingr" (which represents income). I run the following code on the R console:
ingreso <- factor(ifelse(Ingr<=3000,"bajo","alto"))
tapply(Pa1,ingreso,summary)
boxplot(Pa1~ingreso)
and it works fine. However, when I "Sweave" through an rnw file containing that
2012 Dec 07
1
how to add a column from another dataset with "merge"
kiotoqq wrote
> I want to add a shorter column to my dataset with the function "merge",
> it
> should be filled with NAs wo be as long as the other colums, like this:
>
> id age
> 9 46
> 8 56
> 6 52
> 5 NA
> 4 NA
> 3 NA
> 1 NA
>
> i did this:
> pa1 <- merge(pa1, an1, by="mergeid")
>
> and it says
2015 Aug 27
1
FW: smb.conf
ok, try it like this.
hosts allow = 127.0.0.1 192.168.1. EXCEPT 192.168.1.251
Greetz,
Louis
Van: Bernadette.McCluskey at gmb.org.uk [mailto:Bernadette.McCluskey at gmb.org.uk]
Verzonden: donderdag 27 augustus 2015 14:36
Aan: L.P.H. van Belle
Onderwerp: Re: [Samba] smb.conf
I added a host ip to hosts deny in smb.conf and saved & restarted services.
I then added that ip's
2009 Nov 26
1
Arrhenius Plot 2 with lattice
Hello,
sorry for incomplete code...
with this I read the file and calculate my stuff. I have a plenty of
them 80-300K every 5 Kelvin. I start with 79K, 80K...300K
test<-read.table("T300_both.txt",header=FALSE,sep="")
RH2<-c(RH2,2.5e7*.32e-4/100e-6/5100*(test$V3[c(2)]-test$V3[c(1)]+test
$V3[c(4)]-test$V3[c(3)]))
n2<-c(n2,-1/(RH2[c(46)]*1.60217e-19))
2019 Aug 30
2
to shares access from non-member clients/nodes
hi guys,
with Samba as below
[global]
??? workgroup = NNNR
??? netbios name = PA2
??? realm = PRIVATE.REALM.MINE
??? kerberos method = dedicated keytab
??? dedicated keytab file = /etc/samba/samba.keytab
??? create krb5 conf = no
??? security = user
??? domain master = yes
??? domain logons = yes
Should nodes/clients outside of domain (non-members) be able to access
(with user+pass) Samba