search for: df_

Displaying 6 results from an estimated 6 matches for "df_".

Did you mean: df
2013 Apr 25
1
Looping through names of both dataframes and column-names
Hello all, This seems like a pretty standard question - suppose I want to loop through a set of similar data-frames, with similar variables, and create new variables within them: nl<-seq(1,5)for (i in nl) { assign(paste0("df_",nl[i]),data.frame(x=seq(1:10),y=rnorm(10)))} ls()[grep("df_",ls())] nls<-ls()[grep("df_",ls())]for (df in nls) { print(df) for (var in names(get(df))) { print(var) assign(paste0(df,"$",paste0(var,"_cs")),cumsum(get(df)[[var]])) }} ls()[...
2010 Jan 10
2
data frame names in sequence
I've been stuck with this problem for a whole afternoon. It's silly but totally pissed me off. I have a set of data frames with names in a sequence: df_1, df_2, df_3, ..., df_20. Now I want to access each data frame (read or write) in a for loop, in a way something like this: for (i in 1:20) { df_i <- ###### length(which(df_i[,7]==1)) ###### } I tried paste or cat ("df_", i, sep=""). But neither way works. Your help i...
2017 May 02
1
Any progress on write.csv fileEncoding for UTF-16 and UTF-32 ?
...> "UTF-16LE", "UTF-16BE", "UTF-16", > "UTF-32LE", "UTF-32BE", "UTF-32" > ) > > df <- data.frame (x = 1:2, y = 3:4) > > csv <- structure (lapply (ENCODING, function (encoding) { > csv <- sprintf ("df_%s.csv", encoding) > write.csv (df, csv, fileEncoding = encoding, row.names = FALSE) > list (default.eol = list ( > csv = csv, raw = readBin (csv, "raw", 1000)) > ) > }), .Names = ENCODING) > > EOL <- c (LF = "\n", CR = "\r", &quot...
2017 May 02
0
Any progress on write.csv fileEncoding for UTF-16 and UTF-32 ?
...CODING <- c ( "UTF-8", "UTF-16LE", "UTF-16BE", "UTF-16", "UTF-32LE", "UTF-32BE", "UTF-32" ) df <- data.frame (x = 1:2, y = 3:4) csv <- structure (lapply (ENCODING, function (encoding) { csv <- sprintf ("df_%s.csv", encoding) write.csv (df, csv, fileEncoding = encoding, row.names = FALSE) list (default.eol = list ( csv = csv, raw = readBin (csv, "raw", 1000)) ) }), .Names = ENCODING) EOL <- c (LF = "\n", CR = "\r", "CR+LF" = "\r\n")...
2017 May 01
3
Any progress on write.csv fileEncoding for UTF-16 and UTF-32 ?
On 30/04/2017 12:23 PM, Duncan Murdoch wrote: > No, I don't think anyone is working on this. > > There's a fairly simple workaround for the UTF-16 and UTF-32 iconv > issues: don't attempt to produce character vectors, produce raw vectors > instead. (The "toRaw" argument to iconv() asks for this.) Raw vectors > can contain embedded nulls. Character vectors
2003 Dec 01
0
No subject
...88@Yang> X-EM-Version: 5, 0, 0, 18 X-EM-Registration: #01B0530810E603002D00 Reply-To: urmost@europe.com From: "=?windows-1251?Q?=DE=F0=E8=E4=E8=F7=E5=F1=EA=E8=E9_=F6=E5=ED=F2=F 0_=CC=CE=D1=D2?=" <祛耱@mail.ru> To: samba@samba.org Subject: =?windows-1251?Q?=CD=C0=CB=CE=C3=CE=C2=C0=DF_=CF=CE=CB=C8=D6=C8 =DF_=CD=C5_=C4=D0=C5=CC=CB=C5=D2_!!!?= Date: Tue, 14 Aug 2001 21:34:14 +0400 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Converted-To-Plain-Text: from multipart/alternative by demime 0.98b X-Converted-To-Plain-Text: Alternative section used was tex...