search for: datab

Displaying 20 results from an estimated 20 matches for "datab".

Did you mean: data
2013 Apr 13
2
Comparison of Date format
...? ??? 2,B,24-May-01,25-May-01 ??? ??? ??? ??? ??? 2,A,25-May-01,16-Mar-02 ??? ??? ??? ??? ??? 2,A,6-Mar-02,18-Mar-02 2,A,14-Sep-01,6-Mar-02 ??? ??? ",sep=",",header=TRUE,stringsAsFactors=FALSE) library(stringr) DataA[,3]<- str_trim(DataA[,3]) DataA[,4]<- str_trim(DataA[,4]) DataB<- read.table(text=" ID ??? Date.Accident ??? ??? 1?????? 3-Sep-01? 1 ??? 20-Jan-05 1?????? 26-Feb-04??? ??? 2 ??? 6-Mar-02 ",sep="",header=TRUE,stringsAsFactors=FALSE) ? lst1<-lapply(seq_len(nrow(DataB)),function(i) {x1<-unlist(mapply(function(x,y) which(x==y),Data...
2013 Jan 18
2
A smart way to use "$" in data frame
...4565 54 3 31DEC2001 WA 3 2726 35 4 31DEC2001 AR 3 2700 35 The following gives me the balance of state AR: dataa$newbalance[data$newstate == 'AR'] 1170 2700 Now, I have another different data frame datab, it is very similar to data, except that the name of the columns are different, and the order of the columns are different: oldstate olddate oldbalance oldid oldaccounts 1 AR 31DEC2012 1234 7 40 2 WA 31DEC2012 2222 3 30 3 VA 3...
2009 Jun 09
2
is it possible to combine multiple barplots?
i am working with two sets of likert scale type (4 distinct values) data: dataA <- rep(1:4, c(3,2,2,4)) dataB <- rep(1:4, c(5,4,3,2)) i can now (bar)plot both of these separately and compare the distributions. plot(table(dataA), type='h') plot(table(dataB), type='h') is there a way to plot both of them in one plot, so that the bars for value "1" (dataA: 3, dataB: 5) would ap...
2009 Jul 20
1
a complicated merging task
...t;,"13/02/2005","18/08/2005","18/01/2006","21/08/2007","21/04/2009","17/05/2009","17/05/2009"),"%d/%m/%Y") dataA <- data.frame(id=c("A","B","C","B"),date=dateA, x=11:14,y=5:2) dataB <- data.frame(id=c("B","A","B","C","B","C","D","B"),date=dateB,m=27:20,n=22:29) #mystery function, something like: # data.merged <- merge(dataB,dataA,by.y=(id and date, where dataB's date > dataA's d...
2006 Jul 10
0
Rail is necessary to connecting between Ruby and MySQL Datab
I want to work on Ruby and Rails. And Please tell me that Rail is necessary to connecting between Ruby and MySQL Database. Shakeel -- Posted via http://www.ruby-forum.com/.
2013 Jan 16
1
dendrogram stops!
...functions(dendrapply, attributes, accessing of child nodes) that use the hclust object instead? as.dendrogram code: https://svn.r-project.org/R/trunk/src/library/stats/R/dendrogram.R library('stats') library('fastcluster') options(expressions=500000) NCols=10 NRows=30000 DataB <-matrix(runif(NCols*NRows), ncol=NCols) HClust <- hclust.vector(DataB ) dhc<- as.dendrogram(HClust) #gets stuck here forever| Best RegardsSobh [[alternative HTML version deleted]]
2008 Sep 17
2
adding rows to table
...the plot number changes, to add a specific table (data2) or a specific number of rows underneath. I've tried several variations of this with no result for (i in 2:nrow(dataA)) { ifelse(dataA$plot[i]!=dataA$plot[i-1],tab=data.frame(res[1:i,1:3]),a=1+1) rbind(as.matrix(dataA[1:i,]),as.matrix(dataB[,])),a=1+1) } many thanks
2011 Feb 04
1
Error in solve.default(inf, tol = tol.solve) :
...tol.solve) : system is computationally singular: reciprocal condition number = 4.20137e-12 I get the same message when I try to run de lagsarlm with a bigger data set (4333 regions). The command I used: TestLag<-lagsarlm( mean_price ~ transcount+ C1_5_1+ C1_5_2+ C1_5_3+ C1_5_4, data=DataB,transcecB.listw) summary(transcecB.listw) Characteristics of weights list object: Neighbour list object: Number of regions: 521 Number of nonzero links: 2904 Percentage nonzero weights: 1.069846 Average number of links: 5.573896 Link number distribution: 1 2 3 4 5 6 7 8...
2006 Oct 12
2
Too Many Mysql connections
In my app, for three models: foo,bar and baz, the database connection is made to a different database and hence in model code: class Foo < ActiveRecord::Base establish_connection :diff_database end class Bar < ActiveRecord::Base establish_connection :diff_database end class Baz < ActiveRecord::Base establish_connection :diff_database e...
2007 Jul 29
2
write.csv
Hi, I want to save an array(say, array[6,7,8]) write a cvs file. How can I do that??? can I write in one file? if I could not write in one file, i want to use a loop to save in different files (in the array[6,7,8], should be 8 csv files), such as the filename structure should be: file ="filename" +str(i) +"." +"csv" Many thanks. [[alternative HTML version
2003 Mar 17
1
Error in making R-1.6.2.
...ruction. (Whatever that is; I don't speak C.) I've included the beginning of this construction in what I've displayed below, so that you can see ``where things are coming from''. (???) ===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+=== typedef struct datab { <--- Line 277 (my annotation) frtn_t *db_frtnp; unsigned char *db_base; unsigned char *db_lim; unsigned char db_ref; . . . fthdr_t *db_fthdr; ftf...
2009 Jul 08
3
matching each row
I have two dataframes, the first column of each dataframe is a unique id number (the rest of the columns are data variables). I would like to figure out how many times each id number appears in each dataframe. So far I can use: length( match (dataframeA$unique.id[1], dataframeB$unique.id) ) but this only works on each row of dataframe A one-at-a-time. I would like to do this for all of
2006 Sep 05
0
Effective UIDs Nad GID for VIrtual Users
Hello to All. I have a system with FreeBSD 6.1 Release, Dovecot 1.0 Release Candidate 7. I am a novice user in unix world and when my first deal with with Dovecot is Virtual users. User databes in master.passwd file (like a /etc/master.passwd) created by "pw". All works fine, BUT --- If user exclusivly virtual (there is no user with same name in system) IMAP folders are created normal with a right access rights(they described in dovecot.conf statically UID 555) - all cool - BU...
2005 Sep 15
2
Help on RealTime Extensions on Oracle DB
Does someone here configured RealTime Extensions using ODBC connecting to Oracle DB? Im having a problem in dialplan patterns, it doesnt work. Pls. help! -Chris __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com
2002 Apr 15
8
Problem
Hello! If I have a matrix as 1 2 2 3 and I want to change the value 2 in 0, what can I do? Thank you -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !)
2006 Oct 10
6
"MySQL server has gone away" with Apache 2.2 + Mongrel cluster
Hi I just setup a server (Apache 2.2, mod_proxy_balancer, mongrel_cluster) with 2 Rails applications according to this excellent Post: http://blog.codahale.com/2006/06/19/time-for-a-grown-up-server-rails-mongrel-apache-capistrano-and-you Everythings works great, but after a long inactive period (say one night), the first 3 connections allways get an Error 500 Excerpt from production.log: ...
2008 Oct 29
5
network design philosophy and practice
I'm wondering how prevalent the practice of physically segregating voice and data networks is in the Real World. What are the factors that typically lead to such a decision? DIscussions of pros and cons are most welcome by me. Experiences, anybody? -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3234
2008 Jul 29
1
Wine Success and Failure report
...seaudio and Wine together is a possiblity. I've heard of people getting ALSA to work. Well, I got it to work in winecfg, wohoo...but I have my own way of doing things...and if it works for now, I'm happy with that. I haven't reported anything to Pulseaudio, Wine, or anything else's databes as well as bugs (curse me for being lazzy), but I promess I will soon start working on bug-reports and appDB 'boosts' Well if you read the whole post you have to be brave! Thanks, you may comment, swear (at your own responsability) and critisize me! P.S: Sorry if I have any mistakes, I...
2006 May 23
11
putting the schema in the model files
...learned the historic background of ''not having the schema in the model''. Originally the reason for not putting the schema in the model was because of "Don''t Repeat Yourself" (DRY); the model had to be specified only once, in the early rails days that was in the database itself. Can you imagine? Directly modifying the database? Yes dear readers, since the salvation by "migrations" we almost forgot about it, but in the early days of rails development there where brave coders directly modifying databases. I''m kidding, but the point i want to m...
2009 Jul 09
2
How to Populate List
...t;r-help@r-project.org> Message-ID: <BAY124-W219EF0E05D12D89E58F635D5290@phx.gbl> Content-Type: text/plain Hello, I contact you after having unsuccessfully asked my question to R mailing list. I use the package RODBC to connect to a MS-SQL server. I am able to getQuery from the database. I am now studying the sqlSave some data into the database. Unfortunetly, I meet some issues relating to the format of the data that arrives into the database. I have three columns. The first one should be in the MS-SQL format "datetime". The second one in the MS-SQL format "varc...