search for: fakedata

Displaying 14 results from an estimated 14 matches for "fakedata".

2009 Mar 03
2
preparing data for barplot()
...barplot from my data? I would like the barplot to show each person with the values stacked val1+val2+val3, so there is one bar for each person When I use barplot(data.matrix(realdata)), it shows one bar for each value instead. To post here, I created an artificical data set, but it works fine. fakedata <- as.data.frame(list(LETTERS[1:3])) colnames(fakedata) <- 'people' fakedata['val1'] = abs(rnorm(3)) fakedata['val2'] = abs(rnorm(3)) fakedata['val3'] = abs(rnorm(3)) barplot(data.matrix(fakedata)) At a glance there is no substantial difference is between my f...
2010 Dec 07
1
please show me simple example how to plot "Distance-Weighted Least Squares" fitting
I got simple x,y pairs of data and simple scatterplot and just cannot figure how to do it , there are many examples but always there is error popping out please show me an example stripped with additional data just core of what I need to do to get this damn line -- View this message in context:
2011 Dec 23
1
Help transforming a dist
I'd like to convert a dist into a table/matrix/thingy of the form: A B value A C value B C value (assuming the dist was over 3 names). Is there a way to do this without using a for loop? -- Taral <taralx at gmail.com> "Please let me know if there's any further trouble I can give you." ? ? -- Unknown
2012 Dec 07
2
Converting character to numeric: Error: (list) object cannot be coerced to type 'double'
Dear R users, I am facing a pretty a unusual problem while converting character to numeric. Any input would be appreciated. Below is the code and error faced: --------------------------------------- *> str(cmie.dts)* *'data.frame': 4397 obs. of 1 variable:* * $ INE001A01036: chr "1482181740.000000" "1482181740.000000" "1482181740.000000"
2011 Jan 29
0
Parallelizing cor() for large data-set using Cluster
...I allocate 20000M and operate on 5 X 20000. Even this is taking lot of time. Is there any way I can find cl = cor(cdata) utilizing the computers in the clusters(I am using 32 nodes ). I am using the following code to get the cluster.. library(snow) cl <- makeCluster(64) clusterExport(cl, "fakeData") clusterEvalQ(cl, library(boot)) system.time(out2 <- clusterApplyLB(cl, pair, geneCor)) stopCluster(cl) But here the geneCor and pair is calculated as, pair <- combn(1:nrow(fakeData), 2, simplify = F) geneCor <- function(x, gene = fakeData) { cor(t(gene[x[1], ]), t(gene[x[2], ])) }...
2012 Dec 11
1
converting manual command to loop command
Dear useRs, i have certain commands for some operations in R. They are good if you have a small dataset but my dataset, apart from what i used in the recent past, is prety large. I want to convert these massive sets of commands into a simple loop. Your help is required on it thanks in advance eliza kindly note: "e" is matrix whose each column has to be executed into a distance vector
2012 Feb 17
5
How to change the order of columns in a data frame?
Dear all, I have a data frame in which the columns need to be ordered. The first column X is at the right position, but the remaining columns X1-Xn should be ordered like this: X1, X2, X3 etc instead of like below. > colnames(pos1) [1] "X" "X1" "X10" "X11" "X12" "X13" "X14" "X15" "X16"
2009 Jul 23
4
remove multiple columns by name from dataframe
Hi there, I'm trying to remove multiple columns by name from a data.frame. As a result I need to get back the modified data.frame without the removed columns. My columns I want to delete are listed in a vector called "delete". data <- read.csv2("data.csv") delete <- c("col1", "col2", "col3") newData <- subset(data, select =
2012 Jun 19
1
Possible bug when using encomptest
...---------- ####################################################################### ##Demonstration of encomptest breaking when models are created via the ##nlme::lmList() function. ##Required libraries: library(nlme) library(lmtest) library(plyr) ##Create a noisy slope (spoofing real-world data): fakeData<-c(rnorm(10))+seq(0,5,length=10) ##Create a data frame of data to test. The columns ##model1 and model2 contain my basis functions modelFrame<-as.data.frame( list( srcData=fakeData, model1=seq(0,1,length=10), model2=c(rep(0,5),rep(1,5)) ) ) ##Create all data to be fitted all...
2011 Oct 03
1
Assigning factor names to interaction plot
Hi everyone, I have the following problem: I have three variables, 'group', 'city' and 'pressure' There is an interaction effect between group and city and I'd like to show this in an interaction plot: interaction.plot(group, city, pressure, type="b", col= c(1:2), leg.bty="o", leg.bg="blue", lwd=1,
2011 Jan 20
2
ANOVA plotting
Dear List, I recently started using R and I have a simple question. I am running R (v. 2.12.1) and Rcmdr (v.1-6.3) on Mac (Snow Leopard). I am using a data set I used before for practicing ANOVA with R, so I know what the results should look like. I can get ANOVA table using both Rcmdr and GUI. However, I cannot make R prepare the ANOVA diagram (with boxplots, showing the data points, including
2005 Jan 17
1
Time line plot in R?
Dear R users, In order to illustrate the possible effects of events on variables plotted against time, I would like plot a time line of events along side the plot of the variables. The x-axis should be some time unit; the y-axis should be the variable of interest; the time line should be plotted below the graph along the same x-axis scale. As I have many variables and different events
2012 Nov 21
6
Scaling values 0-255 -> -1 , 1 - how can this be done?
I have a dataframe in which I have values 0-255, I wish to transpose them such that: if value > 127.5 value = 1 if value < 127.5 value = -1 I did something similar using the "binarize" function of the biclust package, this transforms my dataframe to 0 and 1 values, but I wish to use -1 and 1 and looking for a way in R to do this. Brian
2009 Oct 27
14
ANNOUNCE: Puppet 0.25.1 released!
...1 byte big * Bug #2735: External node classes aren''t added to the class list on compile startup * Bug #2736: Ssh_authorized_key target changed? * Bug #2737: The zone provider needs to get acquainted with OpenSolaris * Bug #2739: puppetmasterd 0.25.1rc2 is not logging anywhere * Bug #2745: fakedata iteration in specs is borked. * Bug #2750: puppetd: setting the :cacrl to ''false'' is deprecated * Bug #2751: Red Hat initscripts kill an independently started puppetd/puppetmasterd * Bug #2752: require function does not work in ''puppet'' * Bug #2753: fileserver.co...