similar to: Converting a string to variable names

Displaying 20 results from an estimated 2000 matches similar to: "Converting a string to variable names"

2017 Nov 15
2
Converting a string to variable names
Hi, Thanks for your reply. I just came up with another question about a similar but different thing: Say I have a bunch of data.frame variables named P1,P2,P3? I want to assign them row names according to symbols in the first column, and I want to do this using a for loop. How could I accomplish this? for (test_sample in c(1:10)){ +
2017 Nov 14
0
Converting a string to variable names
Hi Ruiyang, I think you want "get": For (index in seq(1,16)){ plot(x=(a given set of value),y=get(paste(?PC?,as.character(index),sep=??))) } On Wed, Nov 15, 2017 at 7:43 AM, ??? <ruiyangliu94 at gmail.com> wrote: > Hi, > Suppose that I want to do a series of plots with the y value for each plot as PC1, PC2, PC3? How could I accomplish this using a for loop? > Suppose the
2006 Nov 26
2
A question about hosts files
Hi there! I'm super-happy because I've just finished my semi-auto configurator for Windows machines ^^ I've got a question: must all the users of a VPN share all together their hosts files? i.e. PC1 is linked to PC2 -> PC1 and PC2 must have both /hosts/PC1 and hosts/PC2 PC2 is linked to PC3 -> PC2 and PC3 must have both /hosts/PC2 and /hosts/PC3 Must PC3 have /hosts/PC1
2011 Jul 29
2
change pch in 3dplot, export graph
Hello I was wondering if anyone has been able to change the pch value for points in 3dplot()? I am able to change point colors just not symbol types. I have included a portion of my code below. I realize this won't work outside of my script, but thought, maybe there is something obvious that I am doing wrong. Also is it possible to utilize the interactive feature of 3dplot in a
2006 Nov 28
1
help
Heloo! I have 3 Vpn with 3 servers! pc1 with debian and adr. for ex. 10.10.10.x pc2 with debian and adr. for ex. 10.10.10.y pc3 with debian and adr. for ex. 10.10.10.z On tinc i have pc1 connect to pc2 and pc3 pc2 connect to pc1 and pc3 pc3 connect to pc1 and pc3 Evrithing works fine but i whant to connect from home to this vpn but at my home i have a pppoe (no ip adr., i have user and pass to
2003 Jul 08
2
Can anybody help me on this?
Hi there: I have this configuration: |-----[Server 2] | [Internet]--------[Router]----------[Switch]------------ [Server 1] | |-----[PC1] | |-----[PC2] | |-----[PC3] Server 1 has IP 216.251.XXX.XX1 Server 2 has IP 216.251.XXX.XX2 PC1 has IP 216.251.XXX.XX3 PC2 has IP 192.168.XXX.1 PC3 has IP 192.168.XXX.2 How do I configure shorewall in SERVER 2 to block to/from the Internet Port 22
2009 Feb 16
2
Using eval in multinom argument
Hi, I am having difficulty entering a 'programmable' argument into the multinom function from the nnet package. Interactively, I can get the function to work fine by calling it this way: z1=multinom(formula = class.ind(grp[-outgroup])~ (PC1 + PC2 + PC3), data=data.frame(scores)) However I need to be able to change the number of variables I am looking for in 'scores' and so am
2009 Nov 09
4
prcomp - principal components in R
Hello, not understanding the output of prcomp, I reduce the number of components and the output continues to show cumulative 100% of the variance explained, which can't be the case dropping from 8 components to 3. How do i get the output in terms of the cumulative % of the total variance, so when i go from total solution of 8 (8 variables in the data set), to a reduced number of
2010 Mar 11
3
Define column names to a series of data.frames
Greets to the list! I am aware that this topic has been discussed several times. And I've read quite some related posts [1]. Yet, can't seem to give a solution to my problem. I have 6 data frames consisting of 6 rows x 7 columns put together from other data.frames. Something like: a b c d e f g v1 # # # # # # # v2 # # # # # # # v3 # # # # # # # v4 # # # # # # # v5 # # # # # # # v6
2006 Dec 05
1
problem with lists...
Hi guys, I am new to R, so sorry if my problem seems trivial. Sometimes I encounter some lists, which I cannot index their components with [ . ] For instance the prcomp() function returns a 'prcomp' object whose components are some 'lists'. the second component is a list that comtains the following: > mylist <- churn[2] > class(mylist) [1] "list" >
2008 Jan 18
2
plotting other axes for PCA
Hi R-community, I am doing a PCA and I need plots for different combinations of axes (e.g., PC1 vs PC3, and PC2 vs PC3) with the arrows indicating the loadings of each variables. What I need is exactly what I get using biplot (pca.object) but for other axes. I have plotted PC2 and 3 using the scores of the cases, but I don't get the arrows proportional to the loadings of each variables on
2008 Jun 11
3
Finding Coordinate of Max/Min Value in a Data Frame
Hi, Suppose I have the following data frame. __BEGIN__ > library(MASS) > data(crabs) > crab.pca <- prcomp(crabs[,4:8],retx=TRUE) > crab.pca$rotation PC1 PC2 PC3 PC4 PC5 FL 0.2889810 0.3232500 -0.5071698 0.7342907 0.1248816 RW 0.1972824 0.8647159 0.4141356 -0.1483092 -0.1408623 CL 0.5993986 -0.1982263 -0.1753299 -0.1435941 -0.7416656 CW
2011 Apr 09
2
Orthoblique rotation on eigenvectors (SAS VARCLUS)
Hi All, I'd like to build a package for the community that replicates the output produced by SAS "proc varclus". According to the SAS documentation, the first few steps are: 1. Find the first two principal components. 2. Perform an orthoblique rotation (quartimax rotation) on eigenvectors. 3. Assign each variable to the rotated component with which it has the higher squared
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
2011 Dec 10
3
PCA on high dimentional data
Hi: I have a large dataset mydata, of 1000 rows and 1000 columns. The rows have gene names and columns have condition names (cond1, cond2, cond3, etc). mydata<- read.table(file="c:/file1.mtx", header=TRUE, sep="") I applied PCA as follows: data_after_pca<- prcomp(mydata, retx=TRUE, center=TRUE, scale.=TRUE); Now i get 1000 PCs and i choose first three PCs and make a
2010 May 21
1
predict
Hello I am creating a linear model with the command net5 = lm( X[,1] ~ PrinComp[,1:5]) where my vector PrinComp looks like this > head(PrinComp[,1:5]) PC1 PC2 PC3 PC4 PC5 [1,] 1.8626055 -3.34190998 -0.5448889 2.8296751 0.3994096 [2,] 3.1124144 -1.68113572 1.7187314 -2.0162583 -0.2935675 [3,] 3.3538049 -0.05471002 -2.9385065 0.6921495 -2.2743761 [4,]
2010 Apr 02
2
Biplot for PCA using labdsv package
Hi everyone, I am doing PCA with labdsv package. I was trying to create a biplot graphs in order to observe arrows related to my variables. However when I run the script for this graph, the console just keep saying: *Error in nrow(y) : element 1 is empty; the part of the args list of 'dim' being evaluated was: (x)* could please someone tell me what this means? what i am doing
2007 Jan 30
2
R and S-Plus got the different results of principal component analysis from SAS, why?
Dear Rusers, I have met a difficult problem on explaining the differences of principal component analysis(PCA) between R,S-PLUS and SAS/STATA/SPSS, which wasn't met before. Althought they have got the same eigenvalues, their coeffiecients were different. First, I list my results from R,S-PLUS and SAS/STATA/SPSS, and then show the original dataset, hoping sb. to try and explain it.
2009 Jun 18
3
how to sort
Hi. I have an object. I think it is a list. > str(corTFandPCA) num [1:922, 1:5] -0.0226 -0.0504 -0.0208 -0.0582 -0.0257 ... - attr(*, "dimnames")=List of 2 ..$ : chr [1:922] "abdomen.2" "abdomimal.3" "abdominal.4" "aberration.5" ... ..$ : chr [1:5] "PC1" "PC2" "PC3" "PC4" ... I want to order it
2009 Nov 23
2
dynlm predict with newdata?
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20091122/6a079ab8/attachment-0001.pl>