similar to: join chars in loops

Displaying 20 results from an estimated 1000 matches similar to: "join chars in loops"

2010 Sep 30
1
Several Lattice plots in one Plot
Hi all, I've been trying for hours, but I do not find a Solution. I want to plot 12 variables over time in separate diagrams in one plot/window using lattice. Two columns, six rows. I used print with the split command, but the graphics are getting really small. Can someone please help me. Following data example: dta = data.frame( day=c(1,2,3,4,5,6,7),
2011 Nov 04
1
How to use 'prcomp' with CLUSPLOT?
Hello, I have a large data set that has more columns than rows (sample data below). I am trying to perform a partitioning cluster analysis and then plot that using pca. I have tried using CLUSPLOT(), but that only allows for 'princomp' where I need 'prcomp' as I do not want to reduce my columns. Is there a way to edit the CLUSPLOT() code to use 'prcomp', please? #
2004 Jan 08
1
(no subject)
Hello, I have trouble converting a character string to a R object. Let me describe this by an example; > dim(a) [1] 270 14 > dim("a") NULL > names(a) [1] "Var1" "Var2" "Var3" "Var4" "Var5" "Var6" "Var7" "Var8" "Var9" [10] "Var10" "Var11" "Var12"
2008 May 07
3
use list elements to subtract values from the dataframe
Hi, I have a dataframe wf existing of a header with different labels and beneath the values of those labels : wf: label1 label2 ... 0,45 0,21 0,10 0,45 .... .... I have a list fl <- c("label2","label3",..) Isn't possible to use the list elements in the list in order to subtract values from the dataframe? like : wf$fl[[1]] When I do in R I get :NULL
2008 Apr 23
3
select rows from data based on a vector of char strings
Hi, I have loaded a dataset in R : data = label freq1 freq2 news 54 35 fun 37 21 milk 19 7 food 3 3 .... etc And I have a vector flist<-c("fun","food") Now I want to use the vector 'flist' for selecting these values from 'data' so that I get the following dataset : label freq1 freq2 fun 37 21 food
2008 May 13
1
multiple plots over multiple pages
Hi, I would like to iterate over a dataframe and plot several graphs over several pages. For instance, an iteration over the dataframe will result in 20 plots. Since 20 plots in one page is too much (too many small plots) I would like to distribute them over 5 pages with each 4 plots. I know how to create multiple plots on one page with : par(mfrow=c(2,2)) -- View this message in context:
2008 Oct 16
1
merge/combine data
Hi, I have the following data imported from a csv file user_id site_id name 1 1 11 februari 2 1 11 redbook 3 1 11 tips 7 3 6 sleep 8 3 6 monitoring 9 3 6 alarm Which I would like to merge/combine into user_id site_id name 1 1 11 februari,
2004 Feb 13
3
Calculate Closest 5 Cases?
I've only begun investigating R as a substitute for SPSS. I have a need to identify for each CASE the closest (or most similar) 5 other CASES (not including itself as it is automatically the closest). I have a fairly large matrix (50000 cases by 50 vars). In SPSS, I can use Correlate > Distances to generate a matrix of similarity, but only on a small sample. The entire matrix can not
2012 Sep 27
1
List of Variables in Original Order
I am trying to Sweave the output of calculating correlations between one variable and several others. I wanted to print a table where the odd-numbered rows contain the variable names and the even-numbered rows contain the correlations. So if VarA is correlated with all the variables in mydata.df, then it would look like var1 var2 var3 corr1 corr2 corr3 var4 var5
2008 Aug 12
5
produce variable on the fly
Hi guys, I want to create variable on the fly: for example for (i in 1:10) { cat(paste("VAR",i,sep="")) } Will print VAR1, VAR2 etc up to VAR10. However I want to make these into variables, and then give them a value, for example: vect = c(10:20) for (i in 1:10) { cat(paste("VAR",i,sep="")) = vect[i] } THis doesnt work but I hope it demonstrates
2004 Jan 08
0
(no subject)
Seems like get() is what you are looking for; e.g., try dim(get("a")), names(get("a")), etc. HTH, Andy > From: Sixten Borg > > Hello, > > I have trouble converting a character string to a R object. > Let me describe this by an example; > > > dim(a) > [1] 270 14 > > dim("a") > NULL > > > names(a) > [1]
2010 Jun 16
0
biglm.big.matrix: Problem with weighting
Hello colleagues, I have tried to use the package bigmemory, biganalytics and biglm. I want to specify a multivariate regression with a weight. I have imported a large dataset with the library(bigmemory). I load the library (biglm) and specified a regression with a weight. But I get everytime an error message like "object not found" or "`weights' must be a
2010 Jan 25
5
Data transformation
Dear all, I have a dataset that looks like this: x <- read.table(textConnection("col1 col2 3 1 2 2 4 7 8 6 5 10"), header=TRUE) I want to rewrite it as below: var1 var2 var3 var4 var5 var6 var7 var8 var9 var10 1 0 1 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 1 0 0
2009 Dec 15
1
Changing Column names in (Output) csv file
Dear R helpers   Following is a part of R code.   data_lab <- expand.grid(c("R11", "R12", "R13"), c("R21", "R22", "R23"), c("R31", "R32", "R33"), c("R41", "R42", "R43"), c("R51", "R52", "R53"), c("R61", "R62", "R63"),
2007 Nov 07
2
creating a dynamic output vector
Let's say I have a program that returns variables whose names may be any string within the vector NAMES=c("varA","varB","varC","varD","varE","varF"..."varZ"), but I do not ever know which ones have actually been created. So in one example output, "varA", "varC", and "varD" could exist, but
2012 Jan 08
2
multivariate problem
Dear all,  I am not sure if this is the right place to ask this question, but I will have a go. Please redirect me to a different place if this is not the right one! I have a (relatively) simple problem which causes me some frustration because I cannot find the solution. I measure ten variables (var1 to var10) every day, they are all continuous (linear) and most of them are correlated. Some days,
2012 Oct 25
1
cut point in ROC
var1 var2 var3 var4 var5 var6 var7 var8 var9 var10 gold 2 3 1 2 4 0 1 4 4 3 2 2 4 2 4 3 4 2 4 4 4 2 3 3 0 0 4 1 0 2 4 4 2 1 4 0 3 2 0 0 2 4 4 2 3 4 0 2 2 0 0 0 3 4 2 2 2 3 2 2 0 0 0 2 4 2 2 4 1 1 2 0 0 3 3 3 2 3 4 1 4 0 0 0 0 3 4 2 3 1 0 2 2 1 0 2 3 3 2 0 3 1 1 1 1 2 1 2 3 2 1
2008 Apr 30
1
What are ties? Wilcox u-test
Hi, When I execute a Wilcox u-test on two variables I receive a warning : 'cannot compute exact p-value with ties' - What are ties? What does this mean for my data? - Is that a problem for significance testing? - is there a way to overcome this problem? I have different threads in this forum but it hard to find what the exact meaning of this warning message is. -- View this message in
2000 Feb 02
0
Factor Analysis?
Hello. I have been browsing the R- manual and not seen any direct implementation of Factor analysis. Is there anyone out there who has run Factor Analysis with R? Thanks Michael -- Michael Preminger Forsker / Research Scientist Avdeling for journalistikk, bibliotek- og informasjonsfag / Faculty of Journalism, Library and Information Science H?gskolen i Oslo / Oslo College
2009 May 29
3
SEM/path question
Dear R People: Could someone recommend a "baby book" on path analysis and SEM, please? Or if someone has an example that they use in the classroom setting, that would be very cool too. Thanks in advance, Sincerely, Erin -- Erin Hodgess Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown mailto: erinm.hodgess at gmail.com