similar to: reading a string vector

Displaying 20 results from an estimated 600 matches similar to: "reading a string vector"

2011 Dec 09
2
display memory usage
Does anybody knows how can I display the memory usage in R? I'd like to know how much RAM R is using to store a data set that I'm reading, is it possible? Thanks in advance, Beatriz -- View this message in context: http://r.789695.n4.nabble.com/display-memory-usage-tp4175898p4175898.html Sent from the R help mailing list archive at Nabble.com.
2011 Dec 05
3
iterative variable names
Hi, I'm trying to assign iterative names to variable, but all my attempts have failed. I have a loop, and for every iteration, I need to create a variable, and I'd like to name them iteratively, such as: for(i in 1:10) { x_i <- c(values) } I need it to return ten variables: x_1, x_2, ..., x_10 How can I do it? Thank you very much! Beatriz -- View this message in context:
2011 Dec 07
2
reading partial data set
Hi all, I'm trying to read a data set into R, but the file is messy, so I have to do it partially. The whole data is in a .txt file, and the values are separated by a space. So far ok. The problem is that in this file, not all the lines have the same number of elements, and the reading stops. And I loose the reading of the previous lines. ex. of data set: 11 12 13 21 22 23 31 32
2009 Jul 15
3
Axes origins and labeling
I have re-labeled tick marks on the x axis. The problem is that by using axes=FALSE, the axes disappears and when they are called back using axis(side=1)..etc. the axis on sides 1 and 2 do not meet at the bottom left corner of the graph. I would also like to have the 3rd and 4th axes in there as well, all meeting in their respective corners. par(mfrow=c(1,2)) gut<-c("Full",
2006 May 09
8
Dynamically printing a page
Does anyone know of a cross browser solution to print a page/url after a user clicks a button? Currently, I''m using a "hidden" iframe to do my bidding. But from my experience, IE requires that the iframe''s src attribute be set initially to the url, in order for the page to open properly. I wasn''t able to add the iframe to the page dynamically, either. So
2013 Aug 06
2
data.frame
Hola Javier, si, y es un factor de Y. Pero ya entendí lo que tenía mal, me falta convertir Nt a valores de geodata antes de hacer el plot, es decir: date<-as.geodata(Nt) plot.geodata(date) Con relación a la actualización de mi versión de R, no me he animado porque he tenido problemas con paquetes que no tienen las actualizaciones y no me corren bien. Gracias y saludos Beatriz 2013/8/6
2013 Feb 01
4
Scrapping con R
Buenas tardes a todos: No sé si alguno de vosotros sabe si con R es posible buscar una palabra en una web (por ejemplo, buscar "Alicante" en www.lasprovincias.es) y que, cada vez que lo encuentre, vaya almacenado las urls en un data.frame gracias de antemano! -- Beatriz Martínez [[alternative HTML version deleted]]
2013 Aug 06
2
data.frame
Hola a todos, estoy trabajando con dos archivos csv. En uno de ellos extraigo dos variables (que son coordenadas), del segundo archivo extraigo otra variable que transformo. Con estas tres variables construyo un data.frame (las tres variables tienen la misma longitud). Hasta ahí todo bien, solo que cuando quiero usar este data.frame para hacer un plot.geodata me marca el siguiente error Error en
2012 Nov 06
2
Fwd: barchart con abline en lattice
Perfecto! muchas gracias Carlos; la verdad que estuve un buen rato intentándolo, pero aún no comprendo la estructura de lattice, así que modificaba cosas un poco al tuntun. Tengo otra cuestión un poco más controvertida, no sé si este será el foro adecuado para proponerla o supondrá un debate innecesario.... Como os decía, acabo de iniciarme en R, y estoy explorando las opciones de visualización.
2013 Jul 16
1
Ordenar data.frame
Hola, Beatriz: Buscando en ?order derivé en arrange, y al final es como resolví: arrange(my.df, col1, desc(col2)) Con order no conseguía el orden descendente, pues me daba error al intentar hacer order(-my.df$col1) Gracias. Eva ________________________________ De: Beatriz Martínez <mtnezb@gmail.com> CC: r-help-es <r-help-es@r-project.org> Enviado: Martes 16 de julio de 2013
2010 Apr 30
2
drop last character in a names'vector
Hi, i have a vector filled with names: [1] Alvaro Adela ... [25] Beatriz Berta ... ... [100000] ... I would like to drop last character in every name. I use the next program: for (i in 1:100000) { ? ? ? ? ? ? ? ? ? ? ? ? ? largo <- nchar(names[i]-1) ? ? ? ? ? ? ? ? ? ? ? ? ? names[i] <- substring (names[i],1,largo] ? ? ? ? ? ? ? ? ? ? ? ? ?} Is another and faster way of do it? Thanks,
2013 Oct 29
2
Hoy reunión del "Grupo de Usuarios de R de Madrid - martes 29-octubre"....
Hola Beatriz, Si me pasas el *.md lo subo a un Dropbox y si no es muy grande lo subo a R-Hispano (linkándolo a la agenda).... Saludos, Carlos. El 29 de octubre de 2013 15:56, Gregorio R. Serrano <grserrano@ccee.ucm.es>escribió: > Hola. > > ¿Nos podemos descargar el material de alguna parte antes de ir? > > Gracias > > > El 29 de octubre de 2013 14:58, Beatriz
2005 Mar 08
4
Non-linear minimization
hello, I have got some trouble with R functions nlm(), nls() or optim() : I would like to fit 3 parameters which must stay in a precise interval. For exemple with nlm() : fn<-function(p) sum((dN-estdata(p[1],p[2],p[3]))^2) out<-nlm(fn, p=c(4, 17, 5), hessian=TRUE,print.level=2) with estdata() a function which returns value to fit with dN (observed data vactor) My problem is that only
2012 May 01
1
error bars for a barchart
Hi I have the following barchart to which I want to add error bars. library(lattice) barchart(Change~fTreat,groups=Process,change, auto.key=list(points=FALSE,rectangles=TRUE), panel=function(x, y,...){ panel.barchart(x,y,origin = 0,...); panel.abline(h=0,col="black",...); } ) I have tried
2013 Jul 16
2
Ordenar data.frame
Buenas tardes: ¿Cómo puedo ordenar un dataframe sin utilizar sqldf?. Me gustaría ordenar por columnas, por ejemplo primero por col1 y después por col2. Gracias. Eva [[alternative HTML version deleted]]
2013 Apr 09
4
Boxplot Labels OK
Dear all, I have just sent an enquiry but probably I hadn’t expressed myself properly. Could anyone help me with the following? When I run the code on my data I get a boxplot with outliers identified by numbers 200 & 201. However, what I would like is to label these outliers with their corresponding “DATA$num” values of the data frame. In this example, the outliers should be labelled as:
2012 May 07
1
How can I brake a label in two lines when using expression()?
I making an xyplot and the y label is too long and needs to be in two rows, but when I brake it there is a huge gap between the last text string and the expression, and I can't get rid of it. Any ideas? Data: structure(list(Temp = c(8L, 8L, 8L, 8L, 8L, 8L, 12L, 12L, 12L, 12L, 12L, 12L), CO2 = c(380L, 380L, 380L, 750L, 750L, 750L, 380L, 380L, 380L, 750L, 750L, 750L), Treat = structure(c(3L,
2005 Oct 21
3
Windows interacting with SAMBA share
Hi, My company has a Samba [3.0] share on a Debian Linux 3.0 [Kernel 2.6] machine and we are trying to copy a large file [>2GB] from a Windows machine to the Samba share. When we try to do this, it only copies 2GB of the information. We were previously having a similar issue when transfering a large file [>2GB] from Linux to a Windows share [mounted as smbfs], but fixed that with the
2002 Feb 20
3
importing images
I would like to import "tif" images in R and I do not find any function that can do that. In Matlab there exists the function "imread" that can read the most known images format. Does a similar function exist for R ? Thanks in advance -- Herve CARDOT ____________________________________________________________ Unite Biometrie et Intelligence Artificielle, INRA Toulouse BP
2005 Nov 18
3
How to run R in batch mode
Hello to everybody! I want to run R in batch mode but it doen't work (Error: syntax error) I've found this in R help: R CMD BATCH [options] infile [outfile] I have tried differents commands: (I have been working in the same directory I have "test.txt" file and "test2.txt" would be the output file) > R CMD BATCH "test.txt" or > R CMD BATCH