Displaying 20 results from an estimated 1000 matches similar to: "Splitting Data Into Different Series"
2012 Aug 08
4
Saving Splitted Series to Excel via XLConnect
Dear R Discussion List,
I would like to save my data as a xlsx file. But at first
I need to split it and then save each series into a Excel
column. Please take a look at the following code:
dados <- data.frame(matrix(c("2012-01-01","2012-02-01",
"2012-03-01","2012-04-01","2012-05-01","2012-06-01",
2007 Dec 31
1
SVM error
Hi all,
I'm having this error, since I'm working with a data matrix I don't understand what's happening; I've tried several ways to solve this, even working with sparse matrix, but nothing seems to solve it, I've also tried svm (with a simple matrix 3*3 and still got the same error.
> dados<-read.table("b.txt",sep="",nrows=30000)
>
2012 Sep 26
3
Reading multiple files
Hi,
I have 35 data files for reading. I would like get a program for
performing reading of 35 files at once.
All are of the type: Dados1.raw, Dados2.raw and so on.
If the files have the same number of columns, I can read with the
following commands:
rm(list=ls())
filenames = list.files(path="~/Silvano/Arq", pattern="Dados+.*raw")
names = substr(filenames, 1, 7)
for(i in
2011 Oct 17
2
Beginner's question about plotting variables in a time series object with the date on the x axis
Dear R helpers,
I am a beginner at R so please be gentle :)
I have already read manuals and FAQs, with no help.
I have a monthly time series data on public debt with 40 variables, it starts on January 1994 and ends on June 2011.
I am loading the data into R using read.csv and the data looks ok when I do edit(dados):
> dados<-read.csv("dadosR3.csv", header=T)
then I tried making
2007 Jul 23
1
Function to separate effect in AOV
Hi,
I have a dummy question.
Suppose that I have two explanatory variable, T1 (A, B) and T2 (C, D) and one
response variable.
> attach(dados)
> tapply(Y,list(T1,T2),mean)
C D
A 2.200000 10.20000
B 2.223333 20.26667
In this case, "A" and "B" inside "C" have no difference, but have differences
inside "D"
I make this model:
> m
2017 Jun 26
2
Windows cant access shared directories after changed password with smbpasswd
2017-06-26 10:38 GMT-03:00 Rowland Penny via samba <samba at lists.samba.org>:
> Your 'samba' password and your windows password MUST be the same to
> allow you to connect to a Samba share from a Windows machine without
> being prompted for a password. I do not understand why, after being
> prompted for the correct username & password, that it doesn't connect,
2011 Jul 08
1
Getting wrong NA values using "for" cmd
Hi There,
I'm facing one problem to construct a vector using the "for" command:
I have one matrix named 'dados' (same as /data/ from portuguese), for
example:
> dados[140:150,]
[,1] [,2] [,3]
[1,] 212.7298 0.14 0.11
[2,] 213.3778 0.14 0.11
[3,] 214.0257 0.15 0.11
[4,] 214.6737 0.15 0.12
[5,] 215.3217 0.15 0.12
[6,] 215.9696 0.15 0.12
[7,] 216.6176 0.16
2011 Nov 10
1
Removing outliers
Hi,
I want to remove the outliers of my database with the following program (an
observation is considered an outlier if it is bigger than second quartile +
1,5* distance interquartiles or less than second quartile - 1,5*distance
interquartiles):
for(i in 1:length(dados)){
q3=quantile(dados[i], probs=.75)
q3=quantile(dados[i], probs=.50)
q1=quantile(dados[i], probs=.25)
d=q3-q1
for(i2 in
2003 Mar 06
1
Problems with variable types.
Hi all,
I have problems in a dataframe variables types.
Look:
from a loop function:
for(...){
...
dados.fin <- rbind(dados.fin, c(L=j, A=j^2,
Nsp=nsps,
N=length(amosfin$SP),
AmT="am",NAm=nam,
AMST=amst))
dados.fin <- rbind(dados.fin, c(L=j, A=j^2,
2008 Jan 02
1
Plot.svm error
Hi all,
Sorry to be bothering again with probably an easy error to fix, but I've been trying to solve the problem and haven't been able yet to do it. So I'm doing this:
> dados<-read.table("b.txt",sep="",nrows=30000)
>
2011 Jul 06
3
Tables and merge
----- Original Message -----
From: "Silvano" <silvano at uel.br>
To: <r-help at r-project.org>
Sent: Thursday, June 30, 2011 9:07 AM
Subject: Tables and merge
> Hi,
>
> I have 21 files which is common variable CODE.
> Each file refers to a question.
>
> I would like to join the 21 files into one, to construct
> tables for each question by CODE.
>
2005 Aug 30
1
loglinear model selection
Hi R-masters!
I have a problem and need your help.
I have 9 discrete variables with 2 levels each.
In exploratory analisys I generate one matrix with chi-square for tables
with 2 ariables each with this script
setwd("F:/")
dados<-read.csv("log.csv")[,2:10]
dados.x<-matrix(NA,ncol=9,nrow=9)
for(i in 1:8){
for(j in (i+1):9){
tab<-table(dados[,i],dados[,j])
2009 Feb 03
1
color and fontfamily in lattice
Hi,
I am having some problems using bwplot(lattice) in my data. I want change some parameters:
1) Fontfamily to serif
2) The size of the font
3) Put it in a bold face
4) Change de color of the lines
How can I do that?! Now, I am using this to plot my boxplot.
dados <- data.frame(varsep=as.factor(rep(1:2,10)),i=runif(20))
2010 Feb 13
4
Labels on a pyramide
I am using pyramid.plot() from the plotrix package.
I have something like this
############################################
xy.pop<-dados$masfr
xx.pop<-dados$femfr
#agelabels<-dados$femlab
xycol<-color.gradient(c(0,0,0.5,1),c(0,0,0.5,1),c(1,1,0.5,1),11)
xxcol<-color.gradient(c(1,1,0.5,1),c(0.5,0.5,0.5,1),c(0.5,0.5,0.5,1),11)
xylab<-dados$maslab
xxlab<-dados$femlab
2008 Jan 04
3
Plot error
Hi all,
I'm trying to plot an svm model and I'm the following error:
> plot(model, data= dados[,-1], formula=formula(dados[,2]~dados[,3]),svSymbol = 1, dataSymbol = 2, symbolPalette = rainbow(4),color.palette = terrain.colors)
Error in terms.default(x) : no terms component
Anyone knows how to solve this???
Best regards,
Pedro Marques
1998 Jun 06
1
R-beta: Problem with Multi-Figure Plots
I was trying to make some multi figure plots and I had some strange
problems. I'm using R 0.61.2. When I make this plot
>postscript(file="timeplot5.ps",horizontal=TRUE)
>par(mfrow=c(2,2))
>plot(dados$a1)
>plot(dados$a2)
>plot(dados$a3)
>plot(dados$a4)
The last panel is ploted without the box and it is always ploted in
landscape mode. Can anyone reproduce this
2014 Mar 19
3
Leyenda gráficos
Hola, ¿hay alguna forma de colocar la leyenda de un gráfico sin que se superponga con las barras de mi gráfico?
Os dejo mi ejemplo para que me entendáis:
##
dado_1<-sample(1:6,1200,replace=T)dado_2<-sample(1:6,1200,replace=T)dado_3<-sample(1:6,1200,replace=T)
dados<-matrix(c(table(dado_1),table(dado_2),table(dado_3)),6)
barplot(t(dados),beside=TRUE,ylab="Frecuencias
2012 Nov 21
1
dúvidas com matriz de correlação e covariancia
Bom dia eu chamo-me Ana, estou a tentar fazer matriz de correla??o e
covariancia para comparar 4 variaveis e saber quais s?o as mehores...
fiz o segundo codigo mas devo tar a fazer alguma confus?o para nao me
aparecer o output correcto:
cor(dados[,2:5],method=c("pearson"))
cor_with_p_test(dados[2:5])
ct <- cor.test(dados[,2:5])
ct$p
ct$v
#matriz de covariancias
cov(dados[,2:5],
2016 Jun 15
1
weird error rights in folders
Hello rowland,
follow the informations:
1) ./configure --prefix=/opt/samba --enable-selftest --enable-debug
2) samba-tool domain provision --domain=CMC --adminpass=Mudar2016
--dns-backend=BIND9_DLZ --server-role=dc --use-rfc2307 --realm=CMC.CORP
3) I created a script to start this as described in the manual Samba4
[global]
netbios name = SAMBA
realm = CMC.CORP
2012 Feb 21
3
HELP ERROR Weibull values must be > 0
GUYS,
I NEED HELP WITH ERROR:
library(MASS)
> dados<-read.table("mediaRGinverno.txt",header=FALSE)
> vento50<-fitdistr(dados[[1]],densfun="weibull")
Erro em fitdistr(dados[[1]], densfun = "weibull") :
Weibull values must be > 0
WHY RETURN THIS ERROR? WHAT CAN I DO?
BEST REGARDS
[[alternative HTML version deleted]]