Displaying 20 results from an estimated 4000 matches similar to: "not complete character in csv file"
2010 Jul 21
3
Interactions in GAMMs
Hi,
I've an issue adding an interaction to a GAMM:
My model was of form:
gamm1 <- gamm(TOTSR ~ fROT + s(PH) + s(LOI) + s(ASP) + s(SQRT_ELEV) + CANCOV
+ s(SQRT_TOTCWD) + s(WELLF) + s(WELLN) + s(OLDWDLD) + s(DISTWOOD) +
s(Annprec) + s(OLDWDLD:DISTWOOD) + (1|fSITE), family = poisson, data =
BIOFOR2)
with interaction of s(OLDWDLD:DISTWOOD).
However I got this error message below but
2010 Jul 21
0
Validation in R for GAMM
My GAMM model is to find drivers of species richness in forests is
gamm1<- gamm(Total Species Richness ~ fROT + s(PH) + s(LOI) + ASP +
s(SQRT_ELEV) + CANCOV + s(SQRT_TOTCWD) + s(WELLF) + s(WELLN) +
s(OLDWDLD) + s(DISTWOOD) + s(Annprec), random=list (fSITE =~1), family
= poisson, data = BIOFOR3)
My issues are that the validation graphs are using methods I'm
unfamiliar with e.g. square
2012 Oct 14
6
transforming a .csv file column names as per a particular column rows using R code
Hello all,
I have a .csv file like below.
Tool,Step_Number,Data1,Data2... etc up to 100 columns.
A,1,0,1
A,2,3,1
A,3,2,1
.
.
B,1,3,2
B,2,1,2
B,3,3,2
.
.
...... so on upto 50 rows
where the column "*Tool*" has distinct steps in second column
"*Step_Number*",but both have same entries in Step_Number column.
I want the output like below.
2005 May 20
3
Reading Numeric Data -- Trivial Question
Hello,
I am very new to R, and this is certainly and uber-newby question:
I am trying to read a vector of numeric data that contains the log
of daily DJI returns and simply plot a histogram of it.
The data I have is in a text file format, on each line a number
represents the log of the returns of one day.
I have problems in reading this in a vector numeric format.
If I try
2008 May 21
2
Problem in converting natural numbers to bits and others
Hi,
I just started using R for about one week and I have few problems.
i)I have a problem in finding right function to convert a table of natural
numbers to bitwise. For a simple example;
I have the below table:-
Column Col1 Col2 Col3
Sample1 5 7 10
Sample2 0 2 1
Sample3 4 0 0
Supposedly i wanted to convert to :-
Column Col1 Col2 Col3
2012 Jul 10
3
HELP me please with import of csv to R
Hey,
I am having problems with importing a csv file to R.
I could read the file by typing:
read.csv(file="/Users/kama/Desktop/skatter.csv", header=TRUE, sep=";")
However, i can not analyze the "skatter" - for ex, when i type: skatter
= read.csv("skatter.csv")
i get this message:
Error in file(file, "rt") : cannot open the connection
2002 May 26
3
Read a Time Serie CSV
Hi,
I want to read some Times Series of GDP from OECD-Countrys.
First I call:
> oecd96<-ts(read.csv("oecd96.csv",header=T,sep=";"),start=1950,freq=1)
> summary(oecd96)
gdpcausb gdpcautb gdpcbelb gdpccanb
Min. : 8567 Min. : 4533 Min. : 6616 Min. : 8966
1st Qu.:10771 1st Qu.: 8717 1st Qu.: 9440 1st Qu.:11694
Median
2012 Jul 25
3
ff package: reading selected columns from csv
*Dear R users, Ive just started using the ff package.
There is a csv file (~4Gb) with 7 columns and 6e+7 rows. I want to read only
column from the file, skipping the first 100 rows.
Below Ive provided different outcomes, which will clarify my problem
*
> sessionInfo()
R version 2.14.2 (2012-02-29)
Platform: x86_64-pc-mingw32/x64 (64-bit)
locale:
...
attached base packages:
[1] tools
2012 Jun 07
3
conditional statement to replace values in dataframe with NA
Hello and thanks for helping.
#some data
L3 <- LETTERS[1:3]
dat1 <- data.frame(cbind(x=1, y=rep(1:3,2), fac=sample(L3, 6, replace=TRUE)))
#When x==1 and y==1 I want to replace the 1 values with NA
#I can select the rows I want:
dat2<-subset(dat1,x==1 & y==1)
#replace the 1 with NA
dat2$x<-rep(NA,nrow(dat2)
dat2$y<-rep(NA,nrow(dat2)
#select the other rows and rbind
2011 Oct 17
3
Importing all observations and variables from csv file into dataframe
Hello,
I need some help getting started with data analysis. I’m having trouble getting R to read my data file. I’ve referred to various R help documentation, the website, and FAQs, but I don’t see my situation listed.
I saved an Excel file (post-2007 Excel version) of data as a “.csv” file. However, the file still appears in column format when I open it. Does that happen when you save a an
2007 Mar 18
1
simple multivariate linear model plot
Dear R-users,
I am trying to get a simple plot for a linear model. The following function does the job
of getting all the plots of the lm function but the "main" plot.
multivarplot <-
function(...){
x1 <- rnorm(10); x2 <- rnorm(10); x3 <- rnorm(10)
y <- rnorm(10)
multivarfit <- lm(y ~ x1 + x2 + x3)
par(mfrow = c(3,2))
plot.lm(multivarfit)
}
2014 Dec 09
4
[LLVMdev] dmb ishld in AArch64
Hi,
I got an optimization problem (O1, O2) regarding memory barrier “dmb ishld”
I find in the test/CodeGen/AArch64/intrinsics-memory-barrier.ll , it’s stated that memory access around DMB should not be reordered, but when compiling the Linux kernel, I found load/store in
static inline void hlist_add_before_rcu(struct hlist_node *n,
struct hlist_node *next)
{
n->pprev
2010 Feb 12
2
Multiple figures margin problem
Hello All,
I am trying to make a figure with 3x2 plots in it. Let us name the plots as
such:
1 2
3 4
5 6
I begin my script with:
par(mfcol=c(3,2))
par(oma=c(0,0,0,0)) --> This is for a postscript figure so I really don't
need the outer margins.
d=5
par(mar=c(d,d,d,d)) --> This applies to all the 6 plots.
Now if d=0, plots 1-2,3-4 and 5-6 will have no gap between them and
2007 Jul 30
4
how to combine data of several csv-files
Hello,
I'm looking for a solution for the following problem:
1) I have a folder with several csv files; each contains a set of
measurement values
2) The measurements of each file belong to a position in a two
dimensional matrix (lets say "B02.csv" belongs to position 2,2
3) The size of the matrix is fix
4) I cannot assure to have a csv file for each position
5) Each position
2005 Jan 28
2
[LLVMdev] The complete suite of llvm now compiles on mingw
Hi,
Today I've succeded in compiling the llvm-tools, llvm-gcc and stacker
frontend and in installing it.
Uptill now I've followed the steps given in:
http://llvm.cs.uiuc.edu/docs/CFEBuildInstrs.html with modifications for the
mingw platform.
I'll return with step-by-step instructions how to do it on this platform.
Cheers
Henrik :)
2002 Jun 03
3
ext3 behaviour when no space on disk
While compiling two kernels and untarring a third, my root fs was remounted r/w
and I got the following in dmesg (kernel 2.4.19-pre9):
EXT3-fs error (device ide0(3,2)) in ext3_new_inode: error 28
Aborting journal on device ide0(3,2).
ext3_abort called
EXT3-fs abort (device ide0(3,2)): ext3_journal_start: Detected aborted journal.
Remounting filesystem read-only
Remounting filesystem read-only
2006 Jun 12
2
Bug in Voicemail ??
Hello,
I have setup an Asterisk 1.2.7.1 system, with a working voicemail box:
/etc/asterisk/extensions.conf
exten => 83086921,1,Answer
exten => 83086921,2,Dial(SIP/stefan,5,r)
exten => 83086921,3,VoiceMail,u111
exten => 83086921,4,Hangup
exten => 83086921,103,VoiceMail,b111
exten => 83086921,104,Hangup
/etc/asterisk/voicemail.conf
[default]
language=de
111 =>
2010 Oct 29
1
Updating asteriskcdrdb with uniqueid field from Master.csv, Master.csv.1....Master.csv.5 - Must I bring all files together first?
Hi Everyone,
Just noted that PBXinaFLASH failed me again on yet something else. The
uniqueid field didn't update on the asteriskcdrdb in the past few months but
it is available in the .csv files in /var/log/asterisk/cdr-csv/*.csv
I have already re-did the asterisk-addons install with correct parameters to
include future calls "uniqueid" in the table (I have no clue why these
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
2010 Dec 20
1
Writing to a CSV with Faster::CSV
Is there a way to write a csv file using a hash instead of an array?
Something like this:
header_keys = :first_name, :last_name, :email
FasterCSV.open("path/to/file.csv", "w") do |csv|
User.all.do |user|
csv << user
end
end
Thanks...
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To