similar to: Get File Names in Folder, Read Files, Update, and Write

Displaying 20 results from an estimated 100 matches similar to: "Get File Names in Folder, Read Files, Update, and Write"

2010 Jul 20
3
Sequence from 2 Vectors
I would like to create a vector that is a sequence from 2 vectors. Could anyone provide suggestion on this? For example > a<-c(1,2,3) > b<-a+2 > b [1] 3 4 5 I would like to have a vector that is a sequence which starting from a and ending at b c = c(1:3,2:4,3:5) c = c(1,2,3,2,3,4,3,4,5) Thank you Best Regards, Suphajak Ngamlak Equity and Derivatives Trading Phatra Securities
2010 Nov 09
2
Calculate Mean from List
Dear all, I have a list of correlation coefficient matrixes. Each matrix represents one date. For example A[[1]] A B C A 1 0.2 0.3 B 0.2 1 0.4 C 0.3 0.4 1 A[[2]] A B C A 1 0.5 0.6 B
2011 Sep 07
1
Weight in Function RM
Dear all, I am trying to do weighted regression using lm function in R. However, I have a question why the results from 1) lm(formula = Y~aX, weight = w) 2) lm(formula = wY~waX) are different. Aren't they supposed to have the exactly same result? Below are the R code to see difference in regression results MatY <- c(0.15,0.42,0.31,0.22) MatX <-
2010 Aug 04
1
SQLDF from Variable Matrix
Dear all, I would like to do sample statistics, e.g. mean, median from very large dataset. This is part of commands I use routinely with several dataset so I would like to make it into function. The simplified examples are Test<-data.frame(A=c('a','b','c','a','b','c'),B=c(1,2,3,4,5,6)) #Create function (This one work)
2010 Nov 25
1
Execute SQL Stored Procedure in R
Dear all, I would like R to retrieve a table resulting from execute sql stored procedures. What function can I use? Can RODBC do it. I tried channel1 <- odbcConnect("ptsecmstqa01-alpha") query <- paste("execute DB.dbo.usp_test") Data<- sqlQuery(channel1, query) However, it returned blank. Best Regards, Suphajak Ngamlak Equity and Derivatives Trading Phatra
2006 Jun 06
8
How do I wrap a <%= link to %> around an image?
I''ve got a bunch of dynamically generated link paths that I want to use to link some dynamically-generated image paths. Specifically, I want to link thumbnails in a gallery to the larger images. But I''m stymied by Rails'' syntax. I can''t figure out how to do this. I tried this: <%= link_to(image_tag("../../images/photos/photo.photogroup/TN_
2009 Mar 14
2
SEM model testing with identical goodness of fits
HI, I am testing several models about three latent constructs that measure risk attitudes. Two models with different structure obtained identical of fit measures from chisqure to BIC. Model1 assumes three factors are correlated with each other and model two assumes a higher order factor exist and three factors related to this higher factor instead of to each other. Model1: model.one
2015 Feb 21
2
Problems in SAMBA 3.3 to 4.0 migration
On Thu, 2015-02-19 at 22:06 -0800, soonerdave wrote: > ***** SUCCESS ***** > > After nearly a week of wrangling with this annoying and frustrating issue, > I'm delighted to report that I finally have EVERYTHING working. I was on the > cusp of giving up, but some diligent reading, lots and lots of testing, and > some long evenings finally paid off. I know this thread is
2003 Oct 16
2
returning dynamic variable names from function
Within a function I'm assigning dynamic variable names and values to them using the "assign" function. I want to pass back the results but am uncertain how to do this. Basically, my function reads a number of data files and uses the filename of each file as the variable name for a list-to-become-dataframe. I want then to pass all these lists back, but again, the names of the
2012 Oct 09
2
Text file: multiple matrix
Hi there! I'm a newbie in R This is my problem: I have a txt file composed by 100 matrix (256x256) separated by a blank line! How can I save automatically the matrix in separated txt file (100)? e.g. 1? matrix from line 1 to line 256 257 blank line 2?matrix from line 258 to line 513 514 blank line 3? matrix from line 515 to line 770 771 blank line 4? matrix from line 772 to line 1027......
2011 Oct 17
2
special language character in a pie chart
Dear List Members, I am working on a below piece of code: Initially have created pie charts with Enlish labels to present the data for Czech Republic, now however I need to print the label with original Czech fonts. When I copy paste from Word, certain fonts get 'simplified' distorting original spelling. How can solve this problem? Is there a package I can download which will support
2011 Oct 31
2
Linear Regression with Linear Equality Constraint
Please advice on the package I should use to run a linear regression model (weighted least squared) with linear equality constraint. I initially tried "constrOptim" but it turned out that it only supported inequality linear constraint. Thank you very much in advance. Cheers, Jon -- View this message in context:
2012 Nov 02
1
mergeing a large number of large .csvs
Dear R help; I'm currently trying to combine a large number (about 30 x 30) of large .csvs together (each at least 10000 records). They are organized by plots, hence 30 X 30, with each group of csvs in a folder which corresponds to the plot. The unmerged csvs all have the same number of columns (5). The fifth column has a different name for each csv. The number of rows is different. The
2011 Jun 10
1
Request: please test modification to EWS calendar functionality
I have expanded the EWS calendar functionality within Asterisk 1.8 so it is now possible to access any calendar within an Exchange 2007 or 2010 server. I have put the changes onto the reviewboard for astrisk but currently no one responded. So if you use the EWS calendar functionality within Asterisk and would like to have access to any calendar in Exchange please try the patch in the
2008 Nov 11
0
Producing a matrix of values
I all I am trying to create a matrix for a network diagram: # 1. The following produces two dataframes. The table "place" is a dataframe of all places made from "tra" a tracing table that has the source place and destination place. The table "details" is a dataframe of all source and destination properties. src=rep(c(1:3),each=5) des=c(16:30) rsk=rep(3,5)
2013 Feb 25
1
lmtp problem with wrong index path
Hello, we've been using dovecot for pop3 and imap for some time now and we're in the middle of deploying lmtp as well, however we're run into a problem we can't solve. Specifically for some reason it seems that dovecot tries to write to the wrong index file during some, but not all, lmtp deliveries. If lmtp tries to deliver to person user_a at domain, sometimes it'll try to
2009 Feb 04
12
Serial console hangs with Linux 2.6.20 HVM guest
I am seeing a problem with the Xen emulated serial console. When running a Linux 2.6.20 HVM guest that has CONFIG_HOTPLUG_CPU=n, the guest blocks on output to the console until it receives input keypresses from `xm console`. This prevents the guest from booting up without banging on some keys, and makes interactive use of the console difficult. By bisecting Linux kernel commits, I found that
2014 Sep 09
0
ACL with Public Namespace
I've configured a namespace like this: namespace avisos { type = public list = yes location = maildir:/var/mail.avisos:INDEXPVT=~/Maildir/avisos subscriptions = yes prefix = "AVISOS." mailbox DIVULGA { auto = subscribe } } This is the namespace representation in filesystem: root at imap:~# ls -lha /var/mail.avisos/ total 44K drwxr-xr-x 7 vmail mail 4,0K Set 9
2004 Sep 22
1
high nfs load after rsync finishes
Hi, We have a cluster of Poweredge 1750s and couple storage nodes (Powervault 220) running RH9 (2.4.20-31.9smp). We use rsync for daily backups. The daily rsync write size is only around 10MB and read size is ~300MB. The rsync finishes fast enough, but for around 4-5 hours after rsync finishes, the load on the
2010 Feb 24
1
Opaque error message and R GUI crashing while using glmnet
Hello all, I am having trouble with the glmnet package. I used it for the first time last week, after updating R to the current version (2.10.1, running in Windows XP). It seemed to be working fine as I explored what it could do with one of my datasets. A day or two later, using the exact same dataset, it suddenly stopped working. I get the following error every time I try to use glmnet with