Displaying 20 results from an estimated 10000 matches similar to: "Vectorize rearrangement within each column"
2005 Jul 25
2
R Cocoa GUI 1.12 (R 2.1.1 Framework) crashes on acf() (PR#8032)
After I upgraded my installation of R for OS X (Tiger) to 1.12, it
consistently crashes when calling the function acf() [stats lib].
Roberto Osorio
2007 Jun 18
1
Automatic paren/bracket closing in 2.5.0?
Hello,
Just upgraded to 2.5.0, and found that R now includes an rparen
(right parentheses) or rbracket whenever I enter in an lparen. While I can
see the use of this function, it doesn't mesh well with my personal style of
using R (e.g., using the up arrow, adding an rparen, jumping to the
beginning of the line, and then wrapping a summary, for instance).
Some 10 minutes of google
2011 Aug 08
1
Help on reshape2 data frame rearrangement
Dear help list: I am trying to reshape a data frame from long to wide format and with a reduced variable list using reshape2. The original data frame format is: Site Obs_no LengthSite 1 Obs 1 10Site 1 Obs 2 13Site 1 Obs 3 14.........Site 2 Obs 1 5Site 2 Obs 2 7Site 2 Obs 3 9 Site and Obs_no are factors and Length is a numeric variable. There are 15
2012 Oct 14
6
transforming a .csv file column names as per a particular column rows using R code
Hello all,
I have a .csv file like below.
Tool,Step_Number,Data1,Data2... etc up to 100 columns.
A,1,0,1
A,2,3,1
A,3,2,1
.
.
B,1,3,2
B,2,1,2
B,3,3,2
.
.
...... so on upto 50 rows
where the column "*Tool*" has distinct steps in second column
"*Step_Number*",but both have same entries in Step_Number column.
I want the output like below.
2009 Oct 22
1
loop vs. apply(): strange behavior with data frame?
Hi everybody,
I noticed a strange behavior when using loops versus apply() on a data frame.
The example below "explicitly" computes a distance matrix given a
dataset. When the dataset is a matrix, everything works fine. But when
the dataset is a data.frame, the dist.for function written using
nested loops will take a lot longer than the dist.apply
######## USING FOR #######
dist.for
2009 Jul 09
1
Wiki page "HowTos/Subversion" needs rearrangement
Dear all,
While translating the "HowTos/Subversion" wiki page, I've found that the
order of the following paragraphs need to be rearranged in this way to
make sense:
== References: ==
Subversion: ...
Version Control with ...
== 1) Installation: ==
[root at lucifer ~] ...
The first thing ... <--- this has been moved
When you install ... <---
2004 Jan 20
1
evaluation of discriminant functions+multivariate homosce dasticity
While I don't know anything about Box's M test, I googled around and found a
Matlab M-file that computes it. Below is my straight-forward translation of
the code, without knowing Matlab or the formula (and done in a few minutes).
I hope this demonstrates one of Prof. Ripley's point: If you really want to
shoot yourself in the foot, you can probably program R to do that for you.
[BTW:
2007 Apr 18
1
[Bridge] ppp0 to eth0
Hi,
i wonder if there's some howto information to
bridge ppp0 to eth0
my distribution is a Hoary Ubuntu 5.04
i install : apt-get install bridge-utlis
what i need it's connect to internet thru a modem 56k (ppp0)
and then give internet access to my laptop thru a crosspair cable
attached to a eth0 in my linux box .
i was following the article
http://www.linuxjournal.com/article/8261
2009 Nov 09
1
Percentage effects in logistic regression
Dear ALL,
I'm trying to figure out what the percentage effects are in a logistic
regression. To be more clear, I'm not interested in the effect on y of a
1-unit increase in x, but on the percentage effect on y of a 1% increase in
x (in economics this is also often called an "elasticity").
For example, if my independent variables are in logs, the betas can be
directly
2005 Mar 28
2
Generating list of vector coordinates
Hi.
Can anyone suggest a simple way to obtain in R a list of vector
coordinates of the following form? The code below is Mathematica.
In[5]:=
Flatten[Table[{i,j,k},{i,3},{j,4},{k,5}], 2]
Out[5]=
{{1,1,1},{1,1,2},{1,1,3},{1,1,4},{1,1,5},{1,2,1},{1,2,2},{1,2,3},{1
,2,4},{1,2,
5},{1,3,1},{1,3,2},{1,3,3},{1,3,4},{1,3,5},{1,4,1},{1,4,2},{1,4,3},
{1,4,
2010 Feb 23
3
how to rearrange a dataframe
Hi all,
I'd appreciate if anyone can help me with this...
I have a data frame that looks like this:
1 + name1 1 2 3
2 + name2 5 9 10
2 - name3 56 74 93
1 - name4 65 75 98
I need to rearrange this in a way so that the rows with "1" in the
first column, and "-" in the second column; then columns 4 and 6
should switch places. That is, column 6 would be now column 4 and
2012 Oct 12
2
Problem to read non-standard csv file
Hi all,
I have a problem to read csv file with comma as decimal. The numbers were
readed as strings.
I used the following string in R, but I do not understand why it does not
work.
tab <- read.csv2("Specimen_RawData_1.csv", header = TRUE, sep = ";", dec =
",", nrows = -1)
In addition, I copy/past into the post the link to the csv file generated by
my instrument.
2010 Oct 10
0
rearrange command in quantreg package
Dear all,
I want to use the "rearrange" command which is based on Chernozhukov et al
paper and is included in the quantreg package. So, I run a quantile
regression in which I included dummy variables for state and years in order
to estimate the respective fixed effects quantile regression. The problems
are the followings:
1. At example that is stated in the help****, I don't
2007 Nov 14
1
Help with K-means Clustering
Hello, I'm new using R.
I'm trying to develop a K-means Clustering with R for some data I have,
however each time I use that instruction with the same data my cluster
means, clustering vector and within cluster sum of square change and I don't
understand why because I use the same parameters and the same data.
Can anybody explain me why does it happen?
Thank you
Act. Calef
2010 Feb 25
2
Rearranging entries in a matrix
I have a matrix, called data. I used the code below to rearrange the data such that the first column remains the same, but the y value falls under either columns 2, 3 or 4, depending on the value of z. If z=1 for example, then the value of y will fall under column 2, if z=2, the value of y falls under column 3, and so on.
data
x y z
[1,] 50 13 1
[2,] 14 8 2
[3,] 3 7 3
[4,] 4 16 1
[5,] 6
2010 Dec 03
10
Kernel DomU 2.6.36.1 dont boot PVonHVM
Hi all,
I try to use kernel 2.6.36.1 in HVM but building the drivers xen-blkfront,
xenfs, platform-pci. I used Xen 4.0.2-rc1-pre and a DomU is a ubuntu 10.04
and I try with ubuntu 10.10.
In boot I receive error "Cannot find a root partition /dev/xvda2" and a
prompt (initramfs) appear.
In dmesg (initramfs) appear:
blkfront: xvda: barriers enabled (tag)
xvda: xvda1
vbd vbd-51712: 16
2010 Dec 03
10
Kernel DomU 2.6.36.1 dont boot PVonHVM
Hi all,
I try to use kernel 2.6.36.1 in HVM but building the drivers xen-blkfront,
xenfs, platform-pci. I used Xen 4.0.2-rc1-pre and a DomU is a ubuntu 10.04
and I try with ubuntu 10.10.
In boot I receive error "Cannot find a root partition /dev/xvda2" and a
prompt (initramfs) appear.
In dmesg (initramfs) appear:
blkfront: xvda: barriers enabled (tag)
xvda: xvda1
vbd vbd-51712: 16
2003 Jul 10
2
my two hosts don't see each other
Hi:
First of all, thanks for this great piece of software!
I found very clear the presentation sheets used at Linux Expo,
Amsterdam. :-)
About my problem, I setup everything to connect our two boxes.
If I type 'ifconfig' I can see them up. Also the routes.
ISIvirtual
- Our firewall (iptables) which connects to the Internet through ADSL
with a public dynamic IP. (the SSL client)
2007 Oct 11
5
rearrange data columns
Dear R users,
I need to to the the following. Let a= 1 2 3
4 5 6
and b= -1 -2 -3 be (2x3) matrices.
-4 -5 -6
I need to combine the two matrices into a new (2x6) matrix like this:
ab = ( 1 -1 2 -2 3 -3 )
4 -4 5 -5 6 -6
How can this be done in R?
-----------------------------------------------------------------
?????? ???
2023 Mar 28
1
[PATCH v8 4/6] security: Allow all LSMs to provide xattrs for inode_init_security hook
On Tue, Mar 28, 2023 at 3:47?AM Roberto Sassu
<roberto.sassu at huaweicloud.com> wrote:
>
> On Mon, 2023-03-27 at 17:02 -0400, Paul Moore wrote:
> > On Mon, Mar 27, 2023 at 3:30?AM Roberto Sassu
> > <roberto.sassu at huaweicloud.com> wrote:
> > > On Fri, 2023-03-24 at 17:39 -0400, Paul Moore wrote:
> > > > On Fri, Mar 24, 2023 at 9:26?AM Roberto