similar to: openxlsx::read.xlsx can't read data without a header

Displaying 20 results from an estimated 100 matches similar to: "openxlsx::read.xlsx can't read data without a header"

2016 Apr 14
2
R y Excel - paquete openxlsx
Para mi lo más práctico y rápido es prescindir de estos paquetes, seleccionar los datos que me interesan del excel, copiarlos y en R poner: datos<-read.table("clipboard",header=T,dec=",",sep="\t",na.strings="") Y con eso me pega los datos como un data.frame en excel. Un saludo Jesús [[alternative HTML version deleted]]
2016 Apr 14
2
R y Excel - paquete openxlsx
Y muchas veces, se guardan los datos en esas hojas excel, donde los usuarios, que no son estadísticos, que no conocen R y no lo van a conocer completan esos excel. Es más cómodo hacer que guarden los datos en esos ficheros fijos respetando ciertas reglas en cuanto a formatos, estando dichos ficheros en ubicaciones fijas y llamar los datos desde R directamente a los archivos en sí, que tener que
2017 Nov 30
4
xlsx Fuera de memoria
Hola, estoy trabajando con el paquete xlsx y el xlConnect y ambos presentan este mismo error. Error in .jcall(cell, "V", "setCellValue", value) : java.lang.OutOfMemoryError: Java heap space Alguien conoce una solución. Alguien conoce otro paquete para guardar documento de excel y que no involucre el uso de Java. -- *Wilmer Contreras Sepulveda* *Grupo de Investigación
2018 May 25
1
how to make the code more efficient using lapply
Eric's approach seems reasonable to me, and I agree that it's probably not the use of a "for" loop that makes the original version slow. As Eric mentioned, there are lots of unnecessary things happening in the loop. For example, list.files() was called twice inside the loop, which is unnecessary, and will definitely slow the loop down (though probably not by much). Call it
2018 May 25
2
how to make the code more efficient using lapply
Dear All, I have a following for-loop code which is basically intended to read in many excel files (each file has many columns and rows) in a directory and extract the some rows and columns out of each file and then combine them together into a dataframe. I use for loop which can do the work but quite slow. How to make it faster using lapply function ? Thanks in advance! temp.df<-c() #
2016 Apr 23
1
Java memory error when reading a small xlsx file
Hi, I tried to read a (small) xlsx file by "readWorksheetFromFile" function of "XLConnect" package and "read.xlsx" function in "xlsx" package, but I got this error message: Error: OutOfMemoryError (Java): Java heap space I tried to follow the solution on the web
2018 May 25
0
how to make the code more efficient using lapply
Hi Stephen, I am not sure that the "for loop" is the source of slowness. You seem to be doing a lot of unnecessary work each time through the loop. e.g. no need to check if it's the last file, just move that section outside of the loop. It will be executed when the loop finishes. As it is you are calling list.files() each time through the loop which could be slow. In any case
2016 Jul 26
7
Exportar datos en formato de Excel
Buenos días a todos! Estoy trabajando con una base de datos que directamente he descargado de internet y después de prepararla un poco necesito exportarla a Excel he intentando con las dos opciones que mencionaré al final pero ninguna funciona, de qué otra manera puedo exportar esos datos a Excel... muchas gracias por su ayuda y pronta respuesta! 1) library(xlsx) library(rJava)
2016 Jul 26
3
Exportar datos en formato de Excel
Hola. En mi caso, no he podido resolver los problemas con el Java para usar XLConnect, que en los papeles me parece el mejor. Supongo que algo de la arquitectura del sistema o bien de la relación entre el Java, el R y el RStudio. Así que utilizo library(openxlsx) write.xlsx(datos, file = "EDA1.xlsx") #donde datos es el objeto que quiero guardar. Requiere instalar el RTools, según tipo y
2020 Jan 02
3
titanic
Estimados quisiera poder salvar a csv y a excell la base de datos titanic data("titanic", package = "prLogistic") saludos José
2019 Mar 04
3
Consulta eliminar columna autómatica
Hola Klaus y Jorge , gracias por responder. Intente eso mismo y me borra la columna "y", yo quiero eliminar la columna que se genera en los data frame que contiene el número de registro. En el ejemplo de abajo esa columna va de 1 a 4, cuando exporta el data frame se genera esa misma columna (que no tiene cabecera) Años Edad Dpto 1 Bueno 16,75 1 2 Bueno 16 1 3 Malo
2023 Jan 16
1
Reg: Frequency in declaring time series data
Dear All, I have a time series daily data with date are stored ( %dd-%mm-%yy format ) from 22-01-20 to 03-08-21. In total I have 560 observations. I am using the following command to declare as a time series object. Here the the data set is 7 days a week. oil <- read_xlsx("crudefinal.xlsx") pricet=ts(oil$price, start = c(2020, 22), freq = 365)
2019 Mar 04
2
Consulta eliminar columna autómatica
Gracias Jorge, sigue apareciendo la primer columna en el archivo. Seguiré investigando El dom., 3 de mar. de 2019 a la(s) 19:49, Jorge I Velez ( jorgeivanvelez en gmail.com) escribió: > Quizás > > write.table(.., row.names = FALSE) > > ? > > Saludos, > Jorge.- > > El El dom, 3 de mar. de 2019 a las 11:18 a. m., Andrés Hirigoyen < > andreshirigoyen en
2017 Aug 11
2
package building problem Centos 7 & R 3.4.1
Dear everybody: Packages that DO pass the package check on my Ubuntu 17.04 laptop with R 3.4.1 and Mac OSX do not build on Centos 7 with R 3.4.1. I'm pretty sure I have an environment defect, but cannot find it. I find posts from various people about this problem since 2012. But I've checked the likely suspects. Among all the runs I pasted in below, the most informative error message I
2017 Dec 07
1
Please to remove the warning when trying to check a package.
Hello Sir, I have been trying to create a package in R. When I have put the check option in R studio to check everything is ok that time I have found two warnings and three notes. Those are given below. warnings: 1) * checking dependencies in R code ... WARNING '::' or ':::' import not declared from: 'SparseM' 'loadNamespace' or 'requireNamespace' calls
2015 Nov 11
2
Problema con la lectura de datos
Hola. He estado viendo los datos que adjuntas en el correo. Al ser un fichero Excel xlsx ¿por qué no lo abres directamente? Te aconsejaría la librería openxlsx (si no la has usado nunca , instálala con install.packages(?openxlsx?)) Este es el código que he ejecutado y los resultados que obtengo: library(openxlsx) dat <- read.xlsx("Variables.xlsx") str(dat) Que produce:
2015 Nov 11
2
Problema con la lectura de datos
?Hola, A mí me funciona la importación directa. Previamente he guardado la hoja de Excel en .csv (separado por ";"). Y hago sin problemas la correlación entre dos variables (las dos primeras). > datIn <- read.csv("Variables.csv", header=T, as.is=T, sep=";", dec=",") > head(datIn) EMPRESAS AA AB AC AD AE AF AG AH AI
2015 Nov 11
4
Problema con la lectura de datos
Has probado con cor(datos,use="pairwise.complete.obs") ??? > From: valeagui en outlook.es > To: cof en qualityexcellence.es; r-help-es en r-project.org > Date: Wed, 11 Nov 2015 15:13:55 +0000 > Subject: Re: [R-es] Problema con la lectura de datos > > Hola Carlos, muchas gracias....pero hago exactamente lo mismo que tu..y al intentar de hacer la matriz de
2023 Jan 16
1
(no subject)
Dear Members, Greetings! I would like to know how to create the lag variable for my data. # Load data and create time series object ---- oil <- read_xlsx("crudefinal.xlsx") pricet=ts(oil$price, start = c(2020, 22), frequency = 365) roilt=ts(diff(log(oil$price))*100,start=c(2020,22),freq=365) # Fit MSW model ---- roilt.lag0 =
2023 Jan 16
0
Reg: Frequency in declaring time series data
?s 20:52 de 16/01/2023, Upananda Pani escreveu: > Hi Rui, > > Thank you so much for your help. As I have to fit a Markov Switching Model > using MSwM package. > > May I know whether i can convert from zoo object to a time series object. > > As I have to use several packages which uses ts so I am not able to decide > how to do it. > > Grateful to you for your